This New Devise API Gem Makes User Auth So Simple! | Ruby On Rails 7 Tutorial

preview_player
Показать описание
This gem allows you to implement user auth for Devise API endpoints in under 5 minutes (In the backend)

API gems for Devise have historically required quite a bit of setup. With this gem

Source:
Links:

Join this channel to help support these videos:

Follow me on social media:

0:00 Rails Devise API Gem Setup
4:20 Vanilla JavaScript API App Configuration

#Deanin #Software #Programming
Рекомендации по теме
Комментарии
Автор

This was a really interesting gem that definitely sped up the workflow. Highly recommend checking it out. Links in the description.

Deanin
Автор

Awesome man, thanks for the great content you share.
I had a wondering is there anyway to expose the tokens controller, in order to customize the response json object?

hothaifatayeh
Автор

Hey I love your content, any advice on how to create of a production build of a rails 7 app with tailwind and esbuild?

YT_Zorro
Автор

A refresh token is used for getting a new access token once the previous one has expired, they're supposed to be short lived, maybe a couple hours. You keep them both in local storage. You wouldn't want to request a new token on every page refresh.

aphex
Автор

Hi! Nice guide but i have a question :/
What should i do if i want to add some fields to user model and set dependencies betwen other tables (i tryed to run rails g devise user name:string number:integer but after all when i send POST req to it creates user but ignores name and number fields )
thanks in advance!

iden
Автор

Hi mate, any way you could do a vid on using inertiaJS for Rails? maybe good for devs to use this with React? Thanks, keep up the great work!

neverforget
Автор

Hey deanin any chance you'd be willing to make a tutorial with Rails 7 utilizing Devise-api and Devise-security with a React frontend?

samuelamity
Автор

Hi, Danin good video as usual, sorry to disturb but I have an issue when I try to sign up at the end when Devise::Api::Token Create the ["resource_owner_type", "User"] takes the type of user that is fine but the ["resource_owner_id", nil] and brings the error rsource owner cant be nul and i dont know why is turn like that and not the id.

rega
Автор

I have added new fields like username and others. How do I get this data in the get request using the token? It only shows me the email and its id. Thanks!

ericksk_
Автор

How would I get the current_user from this token? So that if I'm using pundit along with rolify I can limit access based on the user role

TheDerekCrosson
Автор

And to signup with extra fields, how I can do it?

devinlounge
Автор

Hello @Deanin how are you doing? I need to know how one adds parameters i.e. on email and password to have name on registration?

abolger
Автор

dude voice seems depreced af 😭 great tutorial btw

matheusribeiro