lucia icon indicating copy to clipboard operation
lucia copied to clipboard

[Feature Request]: deleteUserSessions except for the current

Open reslear opened this issue 8 months ago • 3 comments

Package

lucia

Description

Terminates all user's authorized sessions except for the current one.

like https://core.telegram.org/method/auth.resetAuthorizations

deleteUserSessionsExceptCurrent()

// or 

type deleteUserSessions = (except_current: boolean) => boolean

deleteUserSessions(true)

before:

session:1
session:2
session:3
session:4

after:

session:2

reslear avatar Jun 07 '24 15:06 reslear