@upandgo/verify-cognito-token
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,6 @@ | ||
interface CognitoConfig { | ||
region: 'eu-west-1' | 'eu-west-3'; | ||
userPoolId: string; | ||
userPoolWebClientId: string; | ||
} | ||
interface ClaimVerifyResult { | ||
@@ -9,2 +14,3 @@ readonly username: string; | ||
export default class TokenVerificator { | ||
constructor(cognitoConfig: CognitoConfig); | ||
private cognitoConfig; | ||
@@ -11,0 +17,0 @@ private cacheKeys?; |
@@ -33,2 +33,5 @@ "use strict"; | ||
class TokenVerificator { | ||
constructor(cognitoConfig) { | ||
this.cognitoConfig = cognitoConfig; | ||
} | ||
async getPublicKeys(cognitoIssuer) { | ||
@@ -35,0 +38,0 @@ if (!this.cacheKeys) { |
{ | ||
"name": "@upandgo/verify-cognito-token", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "custom token verification for uag", | ||
@@ -5,0 +5,0 @@ "repository": "git@gitlab.com:agence-upandgo/librairies/verify-cognito-token.git", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31694
122