Boruta.Oauth.Revoke (Boruta core v1.2.1) View Source
OAuth Revoke
Link to this section Summary
Functions
Revokes token according to the given Boruta.Oauth.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 Boruta.Oauth.RevokeRequest
Examples
iex> token(%RevokeRequest{
client_id: "client_id",
client_secret: "client_secret",
token: "token"
})
:ok