Session Authenticate and Revoke
A 3-step recipe with Stytch. We can help you get access.
Recipe · 3 steps
Session Authenticate and Revoke
with Stytch · Identity & Access Management
Authenticate a session token, list active sessions, then revoke it.
- Authenticate the session token to confirm it is valid and resolve the owning user_id for the subsequent session lookup.
- Read the active sessions for the authenticated user before revoking.
- Revoke the session token to invalidate the session and log the user out.
What you'll need to have ready
- session_token: The session token to validate and ultimately revoke.
- session_duration_minutes: Optional value to extend the session lifetime on authentication.
For your developer
Arazzo workflow stytch:session-authenticate-revoke, 3 operations: api_session_v1_Authenticate → api_session_v1_Get → api_session_v1_Revoke. Specs on APIs.io.