middleware + strategy: "database" impossible (NOT on edge)? #11108
Unanswered
subproject22
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prisma adapter (SQLite)
Running locally in dev. Never planned to host on edge. Don't have
runtime = "edge"
When I add middleware like
Then when I hit protected route I got error in console
If I change to
strategy: "jwt"
or disable middleware, it works.I've read https://authjs.dev/guides/edge-compatibility
But this doesn't explain why it throws error when I DON'T host on edge and not going to?
Basically middleware will not work with
strategy: "database"
on ANY environment (not only edge)? Otherwise, why it shows me error locally and how to fix it?Beta Was this translation helpful? Give feedback.
All reactions