Unhandled Runtime ErrorRangeError: Maximum call stack size exceeded

I have a server action that invalidates a user session when they click a button (a Signout button). Howeer when i click the button, i get the attached error. Does anyone see anything immediately wrong with this code?
No description
No description
2 Replies
Alan Ibarra-2310
Alan Ibarra-231015mo ago
Do you have middleware, it could be infinitely redirecting.
machina
machina15mo ago
no middleware. I guess this might be more of a lucia-auth question. was just wondering if theres anything purely nextjs that i'm getting wrong here
Want results from more Discord servers?
Add your server