Next.js Discord

Discord Forum

NextAuthjs

Unanswered
bray posted this in #help-forum
Open in Discord
Im new to the use of Nextjs especially implementing Access Token and Refresh Token. Anyone knows why NextAuth is cutting Access Token characters returned from the backend instead of just storing it all in the authjs.session-token ?

6 Replies

@bray Im new to the use of Nextjs especially implementing Access Token and Refresh Token. Anyone knows why NextAuth is cutting Access Token characters returned from the backend instead of just storing it all in the authjs.session-token ?
You should be aware that NextAuth is no longer evolving as a standalone project and is now maintained as part of Better Auth, which is why Better Auth is recommended for new implementations.
@bray Does it take a lot of code recatoring when switching between NextAuth and Better Auth?
if you are advanced in your app i think you can keep in next auth unless you face problems
anyway if you wanna try it better create a new proyect implement it and if you find it meet your requeriments then made the switch
always test stuff isolated is always my way to go no matter if is a library or a new feature of react or nextjs