atmosphere explorer pds.ls
tool typescript atproto

decode URL oauth redirect parameters

handle.invalid f39f84e7 51b11b66

verified
+1 -1
+1 -1
src/auth/session-manager.ts
··· 43 43 44 44 export const retrieveSession = async (): Promise<void> => { 45 45 const init = async (): Promise<Session | undefined> => { 46 - const params = new URLSearchParams(location.hash.slice(1)); 46 + const params = new URLSearchParams(decodeURIComponent(location.hash.slice(1))); 47 47 48 48 if (params.has("state") && (params.has("code") || params.has("error"))) { 49 49 history.replaceState(null, "", location.pathname + location.search);