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(sdk): retry login through Meteor instead of clearing creds on auth-error
The 500ms-deferred cleanup wasn't enough to handle e2ee-passphrase-management:
the test's loginByUserState fires _pollStoredLoginToken with the same token
already in localStorage, so Meteor's poller bails (cached token == current).
By the time the wrap's setTimeout fires, the test has already injected the
SAME token (mongo $addToSet re-added it server-side after unsetLoginTokens),
but the wrap was clearing creds anyway, leaving the page stuck on /login
with no follow-up login firing.
Replace the unconditional clear with a Meteor.loginWithToken retry against
whatever's in localStorage right now. If the token was rotated (or re-added
to mongo concurrently), the retry succeeds; if it's truly stale (real
force-logout, no concurrent recovery), Meteor's callback invokes
forceClientLoggedOut to drive the user to /login as before.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments