-
Notifications
You must be signed in to change notification settings - Fork 42
Revert "fix(session): skip wildcard session during register session l… #2302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @broody's task —— View job Documentation Analysis for Session Management RevertAnalyzed the controller repository changes from this revert and checked if documentation updates are needed in the docs repository. Todo List:
Analysis Summary:The revert removed a conditional session creation feature that was added to avoid double-signing during session registration. The key changes: What was reverted:
What is now restored:
Documentation Impact Assessment:After reviewing the existing documentation in
The reverted changes were internal optimizations to reduce signature requirements - they didn't change how developers use sessions or configure policies. Final Summary:✅ No documentation updates needed - this revert only affects internal session creation logic without changing the public API or user-facing behavior. All existing documentation remains accurate and current. |
| Number(sessionRegistration?.expiresAt) | ||
| ) { | ||
| // Merge the redirect response with locally generated session fields | ||
| sessionRegistration = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing session fields cause undefined sessionKeyGuid after callback
The revert removes the merge logic that provided default values for guardianKeyGuid, metadataHash, and sessionKeyGuid when processing session data from URL callbacks. The callback response (SessionResponse type in keychain) only includes username, address, ownerGuid, expiresAt, and optional transactionHash—it does not include these three fields. Without the merge logic, sessionKeyGuid will be undefined (the SessionAccount constructor has fallbacks for guardianKeyGuid and metadataHash but not sessionKeyGuid). The removed validation block would have caught and cleared such incomplete sessions. This causes the SessionAccount to be created with an undefined sessionKeyGuid, likely causing WASM errors.
…ogin (#2299)"
This reverts commit 0e418ec.
Note
Restores automatic session creation and removes conditional skip paths.
Controller.login(removeskipSessionflag; session is now non-optional)isRegisterSessionFlowand related imports; callers no longer passskipSessionSessionProvider, accept fullSessionRegistrationfromstartappquery and store directly; drop manual merge and field validationwindowUri.pathnameagainst"/session"directlyWritten by Cursor Bugbot for commit 05129f2. This will update automatically on new commits. Configure here.