Backplane.Oauth.Revoke (backplane_oauth v1.10.77)

Copy Markdown View Source

Access token revocation

Summary

Functions

Revokes token according to the given Backplane.Oauth.RevokeRequest

Functions

token(revoke_request)

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

Revokes token according to the given Backplane.Oauth.RevokeRequest

Examples

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