Function apiContextValidationFunction

  • Returns a function that provides additional validation to the JWT

    Parameters

    • basePath: string

      will validate that the audience starts with the provided basePath in production.

    Returns ((jwt) => void)

    • A function that validates the API context and audience.
      • (jwt): void
      • Parameters

        • jwt: {
              payload: TransformedJwtPayload;
          }
          • payload: TransformedJwtPayload

        Returns void

Generated using TypeDoc