Open beeGiaLe opened 4 months ago
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.
It does not accept a Boolean
it seems, it wants an Symbol
🤷♂️
I think I'm getting the same problem here? A CSRF protected
error
Is this package dead ??
I'm facing the same error in production. We can't event set skipCSRFcheck to true.
@ghyath5 I was able to resolve some of my problems by pinning @auth/core
to a specific version in my package.json
{
//...
"@auth/core": "0.17.0",
"@hebilicious/authjs-nuxt": "^0.3.5",
//...
}
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