-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Production Only] SignIn method calls api/auth/callback/credentials with error 403: CSRF Token Mismatch #166
Comments
same problem is anyone able to figure this out somehow? |
Auth.js has a skipCSRFcheck parameter in the config, but i cannot get it to work. |
I think I'm getting the same problem here? A |
Is this package dead ?? I'm facing the same error in production. |
@ghyath5 I was able to resolve some of my problems by pinning {
//...
"@auth/core": "0.17.0",
"@hebilicious/authjs-nuxt": "^0.3.5",
//...
} |
the import { skipCSRFCheck } from "@auth/core"; then used as: export const authOptions: AuthConfig = {
// ...,
skipCSRFCheck,
}; However despite this, I do still have the same error in prod, and my |
Environment
Reproduction
Actual: the network console will returns 403: Forbidden because of
CSRF Token Mismatch
I take a look at the networking behind the scene and saw that it always calls
api/auth/callback/credentials?
with undefinedcsrfToken
.Question: How can I set the csrfToken and how does the nuxt server api verify it? I don't see any setup for csrfToken in nuxt tutorial, neither this site's tutorial.
Describe the bug
api/auth/callback/credentials
and there is no way to set the csrfToken. Thus, the csrfToken always null/undefined.Below is the configurations
After click Submit, the Auth Module calls /api/auth/callback/credentials and received:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: