I have a rails api I setup which uses GitHub - gonzalo-bulnes/simple_token_authentication: Simple (but safe) token authentication for Rails apps or API with Devise. for authentication of users. I’m trying to add in admin dashboard and want to authenticate admins (could be a separate model or flag on the user model) via standard email/username and password authentication.
Is there a way to setup Devise to do this or do I need to use token authentication for my admin dashboard?
It seems like there is just one devise configuration file that is universal for the application. I’m not sure how to configure devise to work with both forms of authentication.
Thanks in advance.