Skip to content

Conversation

@maany
Copy link
Member

@maany maany commented Oct 20, 2025

Implement NextAuth.js for user authentication with multi account support

  • Added API routes for login and account switching.
  • Created a custom session provider for NextAuth.
  • Integrated userpass and x509 authentication methods.
  • Enhanced login page to handle multiple accounts and errors.
  • Updated middleware to validate user sessions and tokens.
  • Refactored authentication logic to use NextAuth's JWT strategy.
  • Introduced error handling for multiple accounts during login.
  • Updated types for NextAuth to support custom user session structure.

Fix #668

…account support

- Added API routes for login and account switching.
- Created a custom session provider for NextAuth.
- Integrated userpass and x509 authentication methods.
- Enhanced login page to handle multiple accounts and errors.
- Updated middleware to validate user sessions and tokens.
- Refactored authentication logic to use NextAuth's JWT strategy.
- Introduced error handling for multiple accounts during login.
- Updated types for NextAuth to support custom user session structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace IronSession with AuthJS

1 participant