Next.js Discord

Discord Forum

Rotating refresh tokens with next-auth in app router

Unanswered
Bee posted this in #help-forum
Open in Discord
Avatar
BeeOP
Good day guys im trying to rotate my refresh tokens in app directory by using middleware then creating a api route which actually updates the cookie session with my refresh token im using cookies from next/headers but it returns a 200 response but doesnt set the cookie does anyone know why that is happening

0 Replies