#NextAuth with database session strategy

2 messages · Page 1 of 1 (latest)

pliant oracle
#

Hey,
Can someone point me to a good resource to find out more about this type of strategy?

How to use it?
How should callback look like?
What is the advantage over JWT?
What should middleware look like?
What should the session contain?

eager hawk
#

Hey. I spent all day in experiment with it. Everything works out of the box except session.strategy: "database". When u use the strategy database the export {default} from "next-auth/middleware"; doesn't work because it has not been supported yet