-
Notifications
You must be signed in to change notification settings - Fork 20
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
Unable to set passport user on Microsoft Edge #106
Comments
@Elsoberanold - Thanks for reporting this. Haven't used Edge or Fastify, so not immediately sure what's going on here... |
This weekend I will try to post a small example to reproduce this error! |
@kleydon https://github.com/Elsoberanold/fastify-passport-session-example |
Thanks @Elsoberanold. Any |
mongodb + prisma + passport + nodejs + express
I encountered the same error, but I managed to resolve it by modifying the session model.
The issue was likely primarily caused by the definition of the id field. In my case, I used |
@Rabithua - Thanks for posting this fix. |
This code was tested on Firefox and was able to run as expected, although that was not the case with Microsoft Edge... Server Log shows the following error:
Prisma schema:
For this project I've used fastify with @fastify/session plugin
I have checked db with prisma studio and session rows are being created on session table, although passport user is set to null on req.user.
Packages versions:
"prisma": "^4.5.0",
"@prisma/client": "^4.5.0",
"fastify": "^4.9.2",
"@fastify/session": "^10.0.2",
"@fastify/cookie": "^8.3.0",
"@fastify/passport": "^2.2.0",
"@quixo3/prisma-session-store": "^3.1.10"
The text was updated successfully, but these errors were encountered: