Guide to devise_token_auth: Simple Authentication in Rails API
10-Feb-2019 1969
I wanted to create an authentication system for my Rails API, but one thing about APIs is that you can't use sessions or cookies for authentication.So instead, I used the gem devise_token_auth, which uses tokens. Put simply, this is how it works: when you make HTTP requests to sign up or log in, the response headers give you authentication tokens, which you send in subsequent HTTP requests' headers to prove that you're authenticated.While the official documentation provides most of the information you need, there were a few points that I found confusing so I'm leaving this article for future reference. Hope it helps!.
Guide to devise_token_auth: Simple Authentication in Rails API #ruby #rubydeveloper #rubyonrails #Guide #devise_token_auth: #Simple #Authentication #Rails #api #authentication #devise_token_auth: #guide https://rubyonrails.ba/link/guide-to-devise_token_auth-simple-authentication-in-rails-api