Best solution to use ActiveAdmin, Devise, and user Authentication in a Rails API server (Client in React.js)

Hi devs,

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.

Thanks a lot in advance.

1 Like

I’m looking forward to a solution too. I’m having a hard time with this for a long time… :cold_sweat:

hey @raphaelrlfreitas have you found a good solution for this one. Haven’t tried this one yet but I’m thinking of using clerk.com for Auth and integrate both rails and next.js with it