ArttiiA
ZITADEL2y ago
10 replies
Arttii

How to get session id given userid and access token

Hi,
I am using the NextAuth provider for Zitadel and wanted to implement a custom logout when a user is logged into Zitadel with multiple users. The /oidc/v1/end_session endpoint logs out all users, but I want to be able to logout only the current user used in the app. I was trying to do this by calling /v2beta/sessions/ with a DELETE, but I somehow cannot get the sessionid to use in that call.

Help would be greatly appreciated!
Was this page helpful?