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?


2 Replies
Do you have middleware, it could be infinitely redirecting.
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