Skip to main content

stop

Function stop 

Source
pub async fn stop(cx: &Cx) -> Result<Option<TokenHash>>
Expand description

Stops the current session, instructing the client to discard its token.

Returns the hash of the stopped session so the application can delete its record, or None when the request carried no session.

ยงErrors

Returns an error when the token store fails to read or discard the token.