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(auth): single-source Console page-URL building; fix SMS + OAuth-callback paths
Root-cause hardening after the invitation-link fixes. The correct URL of a
Console page (${origin}${uiBasePath}${path}) was hand-composed at every call
site, which is exactly how the scheme / /_console prefix kept getting dropped
one link at a time.
plugin-auth:
- Add single-source getConsolePageUrl(path); route loginPage, consentPage,
device verificationUri and the invitation accept URL through it so new page
links can't drift.
- Phone-invite SMS links to the real Console sign-in page via a new
{{loginUrl}} variable instead of the bare origin; {{baseUrl}} kept for
backward-compat with tenant-overridden templates.
client:
- signInWithProvider defaults callbackURL to window.location.href (current
page) instead of a hard-coded origin + '/login'. The SDK can't know the
app's mount path, so returning to the originating page is the only
base-path-correct default; mirrors linkSocial.
Tests: getConsolePageUrl-backed links, SMS login-page target, and the client
callbackURL default (+ explicit override). plugin-auth 406, client 109 pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NT4mx1fHXtkxery6MtLTsp
* docs(auth): update signInWithProvider callbackURL example to the current-page default
Matches the SDK change: the default callbackURL is now window.location.href
(base-path-correct) rather than a hard-coded origin + '/login'.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NT4mx1fHXtkxery6MtLTsp
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments