Closed hasan-ahani closed 1 year ago
Do you know how big the session token is when being saved in the browser? Is there enough that the session cookie is split into multiple chunks? If so, there's currently an issue outstanding regarding the re-joining of chunked cookies being out-of-order.
Could you check the browser inspector and see if there are multiple session cookies? If there are, then that would most certainly cause the issue of logging back out again.
Also, if you enable debug mode, the Nuxt console will state there's been a JWT_SESSION_ERROR
which is JWE Initialization Vector missing or incorrect type
.
Hi @hasan-ahani,
I assume like mentioned above that this has to do with a large cookie not being stored correctly. Please refer to the linked issue. As this issue is also pretty old and stale, I will close it now. If you need further assistance please message in this issue and we can reopen it!
I have the same problem. Once I remove PrismaAdapter, it works.
Environment
No response
Reproduction
No response
Describe the bug
I have written the authentication process as per the example. Everything works well. But the session is not created with Credentials.
The user matching process works correctly. But it is transferred to the main page and the user is not logged in yet Authentication with GitHub is correct and there is no problem.
Additional context
Logs