You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may make incorrect statement, please correct me if I'm inaccurate.
I have a web app with a custom backend (database and User tables) and a frontend using Client-Side Rendering (CSR). We're not using SSR.
Currently, authentication is handled via JWT issued by the backend. The frontend sends the JWT as part of the payload, and the backend authenticates it.
Can I use NextAuth in this setup for both frontend and backend? Is it suitable for my use case? I reviewed the documentation and found it versatile, but my use case is simple and seems to only need a small subset of its features. Additionally, NextAuth appears SSR-focused, which we don't use.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Disclaimer:
I have a web app with a custom backend (database and User tables) and a frontend using Client-Side Rendering (CSR). We're not using SSR.
Currently, authentication is handled via JWT issued by the backend. The frontend sends the JWT as part of the payload, and the backend authenticates it.
We're considering adding third-party login options (e.g., Google/GitHub).
Can I use NextAuth in this setup for both frontend and backend? Is it suitable for my use case? I reviewed the documentation and found it versatile, but my use case is simple and seems to only need a small subset of its features. Additionally, NextAuth appears SSR-focused, which we don't use.
Beta Was this translation helpful? Give feedback.
All reactions