You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using next-auth@beta as my default auth library and I'd like to pass in some decrypted values to my custom provider that I'm using. How can I achieve this as it looks like async/await is not supported by next-auth@beta.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using next-auth@beta as my default auth library and I'd like to pass in some decrypted values to my custom provider that I'm using. How can I achieve this as it looks like async/await is not supported by next-auth@beta.
auth.ts
file:export const { handlers, signIn, signOut, auth } = NextAuth({ debug: true, secret: <authSecret>, providers: [ { id: 'custom', name: 'custom', type: 'oidc', issuer: <authIssuer>, ...otherConfig } ] });
How can I pass these resolve authSecret and authIssuer promises before passing them on to the NextAuth config.
In my
.env
file authIssuer and authSecret are encrypted values. And, I want to decrypt these values before I send it to NextAuth.Beta Was this translation helpful? Give feedback.
All reactions