From 4f97073b7d5d2b285dd0f6a8debbd5f2934698f8 Mon Sep 17 00:00:00 2001 From: Ernie Date: Wed, 24 Aug 2022 11:11:16 -0400 Subject: [PATCH] fix: allow issuer override --- lib/strategy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {}; }