Designer
Designer

Reputation: 1111

Switching from Devise to OmniAuth with Rails 5. Keeping Devise or not?

So I have been using Devise gem for users to sign up with email, but now I want to switch to Twitter login using OmniAuth gem. I'm a bit confused with the transition.

Should I still keep Devise Gem or remove it completely and create a custom User table to store users' personal and Twitter details?

Thank you tons!

Upvotes: 0

Views: 167

Answers (1)

Kkulikovskis
Kkulikovskis

Reputation: 2088

No you can use Devise Omniauthable option. check the instructions here. You will not have to separate users in different tables, just follow the instructions to add twitter sign on and add the appropriate fields to your users table(provider and uid)

Upvotes: 1

Related Questions