sveltegram icon indicating copy to clipboard operation
sveltegram copied to clipboard

Allow to log out once user is Logged in

Open gevera opened this issue 2 years ago • 2 comments

As of right now, when you click on the log in button when a user is already, a "relogin" is happening. How would one go about logging out once he is loggin?. Is there a way to trigger account.resetWebAuthorization as it is described here https://core.telegram.org/method/account.resetWebAuthorization ? Thanks

Btw, I've noticed that if I delte telegram cookie that was created and refresh the page, I am logged out.

gevera avatar Mar 10 '23 13:03 gevera

Hi @gevera , thanks for taking interest in my little component.

I'm really busy these days, that I'm not sure if I can look at it, but I appreciate any contributions anyways :)

amr3k avatar Mar 11 '23 04:03 amr3k

have a button called logout to just clear the cookie or session key thats assigned to the user once login hash is verified

WhoIsFishie avatar Apr 11 '23 05:04 WhoIsFishie