Auth.js Session Management #12860
Unanswered
MoalosiLiteboho
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experiencing an issue with NextAuth.js session management in my Next.js application. The integration with my Spring Boot OAuth2 server seems to work correctly, as the login page from the OAuth2 server appears, and I can successfully enter user credentials. After logging in, I'm redirected back to my Next.js application at the / route. However, the session status does not get authenticated, and the session callback (session({ session, token })) is not being triggered.
auth-action.ts
auth.js
package.json
my spring boot oauth2 server .well-known/openid-configuration
layout.tsx
front-end web logs
Beta Was this translation helpful? Give feedback.
All reactions