Revoke User Session
Revokes user session by exchanging the sessionToken
obtained from the otpless after successful authentication. This server-to-server call requires the clientId
and clientSecret
.
POST
💡 About Revoke Session API
💡 About Revoke Session API
Revoke Session API is used to revoke a user session. Revoke Session API should be called when a user logs out.
Authorizations
The clientId
used for API authentication.
The clientSecret
used for API authentication.
Body
application/json
Payload containing the sessionToken received from otpless authentication and client credentials for verification.
The body is of type object
.
Response
200
application/json
The user's session was successfully revoked.
The response is of type object
.