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

Access token revocation

Summary

Functions

Revokes token according to the given Boruta.Oauth.RevokeRequest

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

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