diff --git a/lib/strategy.js b/lib/strategy.js index e2cc98f..f558403 100755 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -15,7 +15,7 @@ class CognitoExpress { this.userPoolId = config.cognitoUserPoolId; this.tokenUse = config.tokenUse; this.tokenExpiration = config.tokenExpiration || 3600000; - this.iss = `https://cognito-idp.${config.region}.amazonaws.com/${this.userPoolId}`; + this.iss = config.iss || `https://cognito-idp.${config.region}.amazonaws.com/${this.userPoolId}`; this.hasFinishedProcessing = this.init(); this.pems = {}; }