Skip to content

How to use async values when configuring providers? #2394

Answered by balazsorban44
patatoa asked this question in Help
Discussion options

You must be logged in to vote

This should work:

// /pages/api/auth/[...nextauth].js
export default async function handler(req, res) {
  NextAuth(req, res, {
    providers: [
      Providers.IdentityServer4({
          id: "identity-server", //...
          clientSecret: await GetSecret(),
      })
    ]
  })
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@balazsorban44
Comment options

@patatoa
Comment options

@ndom91
Comment options

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