Skip to main content

disable_token

Function disable_token 

Source
pub async fn disable_token(host: Server, token: String) -> Value
Expand description

Invalidate a token server-side by calling /auth/logout. Returns the JSON payload the server responded with, or an error-style object.

§Arguments

  • host - the host
  • token – the bearer token to revoke