Skip to content
Discussion options

You must be logged in to vote

Yes, I think this was temporarily lost in the remix-auth-oauth2 project as well: sergiodxa/remix-auth-oauth2@65b147d

I am working around this by creating a subclass:

interface Auth0StrategyWithAudienceConstructorOptions
  extends Auth0Strategy.ConstructorOptions {
  /**
   * The audience of the token to request from the Identity Provider. This is
   * used when the Identity Provider requires a specific audience to be set on
   * the token.
   *
   * This can be a string or an array of strings.
   */
  audience?: string | string[];
}

class Auth0StrategyWithAudience<User> extends Auth0Strategy<User> {
  audience: string | string[];
  constructor(
    options: Auth0StrategyWithAudienceConst…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danestves
Comment options

Answer selected by dsilva609
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants