Cant use signOut next auth in middleware
Unanswered
Pixiebob posted this in #help-forum
PixiebobOP
Hi everyone, This is my first experience with next auth. I'm trying to implement authentication with a custom express server using credentials provider. I've hit a dead end with the next-auth/react signOut api in middleware, but it will get cant define windows error. Anyone know how to implement signout in middleware when token expired?
1 Reply
Post a screenshot of the console error