Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: deleteUserSessions except for the current #1592

Closed
reslear opened this issue Jun 7, 2024 · 4 comments
Closed

[Feature Request]: deleteUserSessions except for the current #1592

reslear opened this issue Jun 7, 2024 · 4 comments
Labels
feature request New feature requests

Comments

@reslear
Copy link

reslear commented Jun 7, 2024

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 reslear added the feature request New feature requests label Jun 7, 2024
@pilcrowonpaper
Copy link
Member

I could add this in v4, though for now this should be good enough:

await lucia.invalidateUserSessions();
const newSession = await lucia.createSession();

@doroved
Copy link

doroved commented Jun 21, 2024

I could add this in v4, though for now this should be good enough:

Remind me, when do you plan to release v4? Early 2025?

@pilcrowonpaper
Copy link
Member

@doroved early 2025

@pilcrowonpaper
Copy link
Member

I don't plan to add any new features. Also see #1714

@pilcrowonpaper pilcrowonpaper closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature requests
Projects
None yet
Development

No branches or pull requests

3 participants