Boruta.Oauth.Revoke (Boruta core v0.2.1) View Source

OAuth Revoke

Link to this section Summary

Functions

Revokes token according to the given RevokeRequest

Link to this section Functions

Specs

token(
  request :: %Boruta.Oauth.RevokeRequest{
    client_id: String.t(),
    client_secret: String.t(),
    token: String.t(),
    token_type_hint: term()
  }
) ::
  :ok
  | {:error, error :: Boruta.Oauth.Error.t()}
  | {:error, error :: String.t()}

Revokes token according to the given RevokeRequest

Examples

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