deleteSession method
ResponseFuture<DeleteSessionResponse>
deleteSession(
- DeleteSessionRequest request, {
- CallOptions? options,
DeleteSession
Terminate an existing session. This invalidates the session and its token. The session can no longer be used for the authentication of other resources or to authenticate against the Zitadel APIs.
You can only terminate your own session, unless you are granted the session.delete permission.
Required permissions:
session.delete- no permission required for own sessions or when providing the current session token
Possible error slugs include (non-exhaustive):
- "request.invalid" when required fields such as the session ID are missing or invalid
- "auth.missing_permission" when the caller does not have the required permissions to delete the session
- "session.token_invalid" when the provided session token is invalid
Implementation
$grpc.ResponseFuture<$0.DeleteSessionResponse> deleteSession(
$0.DeleteSessionRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$deleteSession, request, options: options);
}