Token undefined over deployment
Unanswered
Flemish Giant posted this in #help-forum
Flemish GiantOP
Hey everyone,
I am using nextjs 15 with nextAuth V5.
I am using the middleware.ts file for protecting routes and the file works for my local development but when I deploy my app it doesn't allow me to redirect to the wanted route.
I am using getToken for getting the token and auth checking the user in middleware.
I am using nextjs 15 with nextAuth V5.
I am using the middleware.ts file for protecting routes and the file works for my local development but when I deploy my app it doesn't allow me to redirect to the wanted route.
I am using getToken for getting the token and auth checking the user in middleware.