DEV Community

Discussion on: Guide to devise_token_auth: Simple Authentication in Rails API

Collapse
 
mirmayne profile image
Daveyon Mayne 😻

Hi. It's not the case with Rails 6 API in my case. I do not know why. My Gemfile:

# Authentication
gem 'devise'
gem 'devise_token_auth'
Thread Thread
 
risafj profile image
Risa Fujii • Edited

Happy new year :)
Hmm, that's strange. Out of curiosity, I created a new repo and followed my own tutorial. I had to make some updates in the article to compensate for changes made in devise, but I didn't have to include the devise gem in the Gemfile. Feel free to check out the project: github.com/risafj/demo-for-devise-...

Thread Thread
 
mirmayne profile image
Daveyon Mayne 😻

I had a fresh copy of the api installed using ruby 2.5.0. If I remove the devise gem, the auth breaks lol I know this is weird. I'll upgrade both ruby and rails and try again. But yea, I believe something weird is happening with my setup.

Thanks.

Thread Thread
 
mirmayne profile image
Daveyon Mayne 😻

To update. Another fresh installation with ruby 2.7.0 and Rails 6.0.2.1 and all is well (production). Weird, I know. πŸ˜…

Thread Thread
 
risafj profile image
Risa Fujii

Hmm... we may never find out why πŸ˜‚ Glad it’s working now though! Thanks for the update!

Some comments have been hidden by the post's author - find out more