Replies: 5 comments 2 replies
-
|
This provider configuration works in next-auth v4, but results in the error above in v5. error { |
Beta Was this translation helpful? Give feedback.
-
|
@exurban - were you able to find solution? |
Beta Was this translation helpful? Give feedback.
-
|
Having exactly the same problem. @exurban any chance you can share a solution? |
Beta Was this translation helpful? Give feedback.
-
|
For me the fix was update the I have no idea if this is still secure though :) |
Beta Was this translation helpful? Give feedback.
-
|
Hi! Thought I’d share some insight on the error you’re seeing. The ...could be because the code verifier doesn’t match what was sent in the request. There's actually a blog on Linear and how to handle it (including refresh flows). This walkthrough is VERY helpful: https://nango.dev/blog/linear-oauth-refresh-token-invalid-grant. Really hope this helps with error you're getting. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a custom provider for linear.app. I'm getting an error of Invalid grant: code verifier is invalid but I think it's more likely related to a problem with my custom provider configuration.
Linear is sending a GET request to
http://localhost:3000/api/auth/callback/linear?code=...state=...My understanding is that NextAuth should exchange that code for a token, but the callback function is failing here before it gets a chance to do so.
My configuration is:
Documentation for Linear OAuth is at: https://developers.linear.app/docs/oauth/authentication
I'm using
Beta Was this translation helpful? Give feedback.
All reactions