feat(05-02): portal authentication via subscriber account number
- Add passwordHash field to Subscriber model (nullable for existing subscribers) - Add portal-credentials NextAuth provider (accountNumber + password + tenantId) - Persist subscriberId in JWT token and session for portal user identification - Extend next-auth types with optional subscriberId on Session, User, and JWT - Exclude /portal/login and /api/portal/auth from middleware auth requirement Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,6 @@ export const config = {
|
||||
* - /favicon.ico, /robots.txt, /sitemap.xml (static files)
|
||||
* - Image files (.png, .jpg, .jpeg, .gif, .webp, .svg, .ico)
|
||||
*/
|
||||
"/((?!login|signup|api/auth|_next/static|_next/image|favicon\\.ico|robots\\.txt|sitemap\\.xml|.*\\.(?:png|jpg|jpeg|gif|webp|svg|ico)).*)",
|
||||
"/((?!login|signup|portal/login|api/auth|api/portal/auth|_next/static|_next/image|favicon\\.ico|robots\\.txt|sitemap\\.xml|.*\\.(?:png|jpg|jpeg|gif|webp|svg|ico)).*)",
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user