We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9638cf2 commit deb9925Copy full SHA for deb9925
src/passport.ts
@@ -438,8 +438,9 @@ export class Strategy implements passport.Strategy {
438
const currentUrl = this.currentUrl(req)
439
440
if (
441
- (req.method === 'GET' && currentUrl.searchParams.size === 0) ||
442
- (currentUrl.searchParams.size === 1 && currentUrl.searchParams.has('iss'))
+ req.method === 'GET' &&
+ !currentUrl.searchParams.has('code') &&
443
+ !currentUrl.searchParams.has('error')
444
) {
445
Strategy.prototype.authorizationRequest.call(this, req, options)
446
} else {
0 commit comments