Guide to devise_token_auth: Simple Authentication in Rails API
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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper