auth0-developer-hub / api_nestjs_typescript_hello-world

Apache License 2.0
17 stars 4 forks source link

Missing auth() parameters #1

Closed Duske closed 1 year ago

Duske commented 1 year ago

Hey auth0 team,

I got stuck with the missing parameters for the auth() call in: https://github.com/auth0-developer-hub/api_nestjs_typescript_hello-world/blob/eeb2ddc45b5d871017f6e3df41790856a55991b6/src/authorization/authorization.guard.ts#L28

Am i missing something or does this need to be fixed?

I simply went with

    const validateAccessToken = promisify(
      auth({
        issuerBaseURL: this.ISSUER_BASE_URL,
        audience: this.AUDIENCE,
      }),
    );
fellmann commented 1 year ago

If no options are specified, environment variables ISSUER_BASE_URLand AUDIENCE are used.

Duske commented 1 year ago

Thx!