You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent numeric ID fallback in session creation
- Remove fallback to user.id (numeric) when documentId not found
- Add proper error logging when documentId cannot be retrieved
- Add debug logging for JWT session validation
- Show total session count in blocked request logs for debugging
This fixes the "Valid JWT but no active session" error that occurred
when sessions were created with numeric user IDs but queried by documentId.
`[magic-sessionmanager] [JWT-BLOCKED] Valid JWT but no active session (user: ${userDocId.substring(0,8)}...)`
650
+
`[magic-sessionmanager] [JWT-BLOCKED] Valid JWT but no active session (user: ${userDocId.substring(0,8)}..., total sessions: ${allSessions?.length||0})`
0 commit comments