Next.js next-auth, auth.js credential provider with custom backend api and jwt scheme
We will use next-auth / auth.js to sign in to our application and use the session in our client and server components, server actions, etc. We will use a custom backend with an authentication API to generate a JWT web token to authenticate users.
ads here