We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb361a0 commit 831608eCopy full SHA for 831608e
projects/lib/src/oauth-service.ts
@@ -1500,7 +1500,10 @@ export class OAuthService extends AuthConfig {
1500
return Promise.reject(err);
1501
}
1502
1503
- if (claims.iss !== this.issuer) {
+ // Google sets iss to 'accounts.google.com' (without https://)
1504
+ // so accept a missing 'https://' if iss is 'accounts.google.com'
1505
+ if (claims.iss !== this.issuer &&
1506
+ (claims.iss !== 'accounts.google.com') || 'https://' + claims.iss !== this.issuer) {
1507
const err = 'Wrong issuer: ' + claims.iss;
1508
this.logger.warn(err);
1509
0 commit comments