Bchir / idle-session-timeout

Idle session timeout is a security and resource management feature that automatically logs a user out after a period of inactivity
MIT License
12 stars 4 forks source link

Use in next-auth project #5

Open recdatadevsk opened 4 months ago

recdatadevsk commented 4 months ago

Hi, I like your package, but how do I use it in next-auth. I get this error when I try to use it:

Error: Cookies can only be modified in a Server Action or Route Handler.

I made a minimum version of my code to reproduce the error: this is the code

charan-vendra commented 4 months ago

I would like to know th answer for this too...