Skip to content

Commit

Permalink
Merge pull request #6939 from clethrill/main
Browse files Browse the repository at this point in the history
Can't use "code" as query parameter
  • Loading branch information
harrysolovay authored Dec 3, 2020
2 parents d9aa328 + d3e522b commit e98217c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/OAuth/OAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class OAuth {
.map(pairings => pairings.split('='))
.reduce((accum, [k, v]) => ({ ...accum, [k]: v }), { code: undefined });

if (!code) {
if (!code || parse(currentUrl).pathname !== parse(this._config.redirectSignIn).pathname) {
return;
}

Expand Down

0 comments on commit e98217c

Please sign in to comment.