Devise token and standard authentication in same rails app

I have a rails api I setup which uses 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.

I think I figured out a solution.

I setup devise for an admin model along with my current user model. I was able to specify different authentication keys for my admin model via the description in the article