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
{{ message }}
Repository navigation
New session API endSession doesn't include did from initialScope #10146
Hmm I think endSession should check for a session on the currentScope first and only if there's none fall back to the isolation scope. I didn't think at all about initialScope and how it's set.
This makes me question if we should even set the session on the isolation scope or not just onto the current scope. IIUC, the scope that gets returned from getCurrentScope should anyway be covered by an isolation scope (cc @mydea when you're back).
I'll look into this later today.
Also reminder for myself to add an integration test that reproduces this.
Activity
Lms24 commentedon Jan 11, 2024
Hmm I think
endSessionshould check for a session on thecurrentScopefirst and only if there's none fall back to the isolation scope. I didn't think at all aboutinitialScopeand how it's set.This makes me question if we should even set the session on the isolation scope or not just onto the current scope. IIUC, the scope that gets returned from
getCurrentScopeshould anyway be covered by an isolation scope (cc @mydea when you're back).I'll look into this later today.
Also reminder for myself to add an integration test that reproduces this.