Replies: 2 comments 3 replies
-
First thing I noticed is that you're passing the string |
Beta Was this translation helpful? Give feedback.
-
The problem emerged from here export type OAuthProviderOptions = Pick<OAuthConfig, 'client_id' | 'client_secret'>;` then import this type where you create the provider |
Beta Was this translation helpful? Give feedback.
-
I want to migrate my app to next-auth v5 (while on early stage). So I used my old custom OAuth provider (particularly, lichess oauth) , but it doesn't work. I digged into auth/core/providers to make mine similar, but it hasn't helped either. And there is not so much information about using custom providers in v5.. So, if someone here could suggest how I can try fix it, i'd highly appreciate!
My lichess-provider that worked well in next-auth-v4:
and it just received clientId and clientSecret later:
now I tried loooots of ways. but im stuck with same error:
and this is where i get redirection to error:
If any questions, I'd be happy to answer. Any thoughts — highly welcomed!
Beta Was this translation helpful? Give feedback.
All reactions