Skip to content

Commit

Permalink
fix: fix bug when attempting to connect new 3rd party auth providers.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Jan 18, 2025
1 parent a27297b commit 2a99fce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
body: JSON.stringify(data)
});
await checkResponse(resp);
const csrfToken = await resp.text();
localStorage.setItem('csrfToken', csrfToken);
const providerToken = await resp.text();
localStorage.setItem('providerToken', providerToken);
window.location.href = resp.headers.get('location')!;
}
async function linkAccount(providerId: string) {
Expand Down

0 comments on commit 2a99fce

Please sign in to comment.