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
Token exchange not completing after OAuth redirect in mashlib/browser context #4172
solid-client-authn-browser receives the OAuth authorization code after redirect but does not complete the token exchange. The library stores the codeVerifier in localStorage but never exchanges the code for tokens.
Captures auth code at module load (before library processes it)
Reads session data from solidClientAuthenticationUser:* localStorage keys
POSTs to /idp/token with PKCE parameters
Patches window.fetch to add Bearer token
Code Location
The issue appears to be in handleIncomingRedirect() - it's called but doesn't trigger the token exchange even though all required data is present.
Related
This may be related to timing issues where the library cleans up URL parameters before handleIncomingRedirect is called, or session state management issues.
Hi @melvincarvalho , thanks for reporting this, and thanks for the thorough details.
Can you confirm that there are no error messages logged in the console when the issue manifests? And can you also confirm whether the OpenID Provider you are using is compliant with RFC9207, and includes an iss parameter to the authorization response? Ideally, if you could update to the latest version of the library, that would be great, so that we confirm the issue hasn't been fixed in the meantime (none of the releases after the version you're using seem to be targetting the issue you're describing, but it could have been fixed as a side-effect).
Activity
NSeydoux commentedon Jan 5, 2026
Hi @melvincarvalho , thanks for reporting this, and thanks for the thorough details.
Can you confirm that there are no error messages logged in the console when the issue manifests? And can you also confirm whether the OpenID Provider you are using is compliant with RFC9207, and includes an
issparameter to the authorization response? Ideally, if you could update to the latest version of the library, that would be great, so that we confirm the issue hasn't been fixed in the meantime (none of the releases after the version you're using seem to be targetting the issue you're describing, but it could have been fixed as a side-effect).