I have a project where I want to develop the frontend in Next.js (requests based on fetch API from JS) and the backend in RoR and I am having a hard time to get the User authentication to work. I have researched and found four possible solutions:
- Sessions and cookies
- JWT
- devise_token_auth
- devise-jwt
I have tried to implement some of them but i always end up getting a server error on client requests at some point. I would like to know if anyone has any resources where I can get to know more about and learn more about it so I can implement such authentication in my project.
If I could take advantage of devise would be even better, since I already have it setup for ActiveAdmin (wanna use the admin dashboard)
Thanks a lot in advance.
question from:
https://stackoverflow.com/questions/65846883/best-authentication-strategy-for-ruby-on-rails-api-only-server-with-activeadmin 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…