Skip to content
Init is coming / May 19 - 23
Back

cant sign out

  • 0
  • Auth
  • Web
terthesz
27 May, 2024, 14:14

I use createEmailPasswordSession in node-appwriter to get a session secret which I then store in the cookies. Then I create a SessionClient with the session secret from the cookies and try to do new Accoint(sessionClient).deleteSession(/* the session from the cookies */); but it returns ths error

TL;DR
Developers unable to sign out a user due to confusion with session management. The solution is to use `deleteSession('current')` to delete the current session.
Ryan
27 May, 2024, 14:16

If you want to delete the current session, you should use deleteSession('current')

terthesz
27 May, 2024, 14:18

oh my god im stupid ive been trying to fix this for ages

terthesz
27 May, 2024, 14:19

but just now i realized

terthesz
27 May, 2024, 14:19
terthesz
27 May, 2024, 14:19

this probably means it worked, right? 😭

Ryan
27 May, 2024, 14:19

Yeah, this means that the user isn't currently logged in

terthesz
27 May, 2024, 14:19

bruuuuh 😭

terthesz
27 May, 2024, 14:20

well, thank you x3

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more