Skip to content

Add method in SessionsManager to revoke a session #1099

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

Open
5 tasks done
JulienConnaulte opened this issue Apr 4, 2025 · 0 comments · May be fixed by #1104
Open
5 tasks done

Add method in SessionsManager to revoke a session #1099

JulienConnaulte opened this issue Apr 4, 2025 · 0 comments · May be fixed by #1104

Comments

@JulienConnaulte
Copy link

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

Currently the SessionsManager supports 2 methods, get and delete. Auth0 management API provides a third endpoint under the sessions route, revoke . This method is really useful to delete a session and revoke the refresh tokens at the same time.

Describe the ideal solution

It would be ideal to add the method revoke under the SessionsManager.

Alternatives and current workarounds

My current need is to revoke all the user sessions, so I could get around revoking the refresh tokens with a call to the users.deleteRefreshTokens method. This deletes all the refresh tokens though, not the ones associated to a specific session, so it fits my case but might not fit another one.

Additional context

No response

@shenie shenie linked a pull request Apr 16, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant