View Source Boruta.Oauth.Revoke (Boruta core v2.3.0)

Access token revocation

Link to this section Summary

Functions

Revokes token according to the given Boruta.Oauth.RevokeRequest

Link to this section Functions

@spec token(request :: Boruta.Oauth.RevokeRequest.t()) ::
  :ok
  | {:error, error :: Boruta.Oauth.Error.t()}
  | {:error, error :: String.t()}

Revokes token according to the given Boruta.Oauth.RevokeRequest

examples

Examples

iex> token(%RevokeRequest{
  client_id: "client_id",
  client_secret: "client_secret",
  token: "token"
})
:ok