Skip to content

Commit

Permalink
Use url instead of location
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkoKukovec committed Apr 16, 2024
1 parent 1b19ce3 commit 50f1570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function intercept(method: HttpMethod, urlString: string): Promise<URL | v
const localState = await getState(provider);
const pkce = await getPkceVerifier(provider);

await createSession(params, provider, localState, location.origin, pkce);
await createSession(params, provider, localState, url.origin, pkce);

// TODO: Add configurable login URL (hash is required!)
return new URL('#/', url.origin);
Expand Down

0 comments on commit 50f1570

Please sign in to comment.