Fix api env variable usage
This commit is contained in:
@@ -7,12 +7,12 @@ const secure = jwt({
|
||||
cache: true,
|
||||
rateLimit: true,
|
||||
jwksRequestsPerMinute: 5,
|
||||
jwksUri: `https://${process.env.SNOWPACK_PUBLIC_AUTH0_DOMAIN}/.well-known/jwks.json`,
|
||||
jwksUri: `https://${process.env.auth0Domain}/.well-known/jwks.json`,
|
||||
}),
|
||||
|
||||
// Validate the audience and the issuer
|
||||
audience: `https://${process.env.SNOWPACK_PUBLIC_API_DOMAIN}/`, //replace with your API's audience, available at Dashboard > APIs
|
||||
issuer: `https://${process.env.SNOWPACK_PUBLIC_AUTH0_DOMAIN}/`,
|
||||
audience: process.env.auth0Audience, //replace with your API's audience, available at Dashboard > APIs
|
||||
issuer: `https://${process.env.auth0Domain}/`,
|
||||
algorithms: ["RS256"],
|
||||
});
|
||||
|
||||
|
||||
@@ -16,3 +16,5 @@ inputs:
|
||||
dbIndex1: ${output:database.indexes.gsi1.name}
|
||||
# A secret token to sign the JWT tokens with.
|
||||
tokenSecret: ${env:tokenSecret} # Change to secret via environment variable: ${env:tokenSecret}
|
||||
auth0Audience: "https://${env:SNOWPACK_PUBLIC_API_DOMAIN}/"
|
||||
auth0Domain: ${env:SNOWPACK_PUBLIC_AUTH0_DOMAIN}
|
||||
|
||||
Reference in New Issue
Block a user