mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
add audince verifier
This commit is contained in:
parent
6d93b57d25
commit
525a048b40
1 changed files with 3 additions and 3 deletions
|
|
@ -2,9 +2,9 @@ import { JwtRsaVerifier } from "aws-jwt-verify";
|
||||||
|
|
||||||
|
|
||||||
export const verifier = JwtRsaVerifier.create({
|
export const verifier = JwtRsaVerifier.create({
|
||||||
issuer: process.env.COGNITO_ISSUER, // set this to the expected "iss" claim on your JWTs
|
issuer: process.env.COGNITO_ISSUER,
|
||||||
audience:null, // set this to the expected "aud" claim on your JWTs
|
audience: process.env.COGNITO_CLIENT_ID,
|
||||||
jwksUri: process.env.COGNITO_JWKS_URI, // set this to the JWKS uri from your OpenID configuration
|
jwksUri: process.env.COGNITO_JWKS_URI
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue