Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.OAuth.Token.Strategy.Revoke View Source
Functions for dealing with revocation.
Link to this section Summary
Link to this section Functions
Link to this function
revoke(token)
View Sourcerevoke(Pleroma.Web.OAuth.Token.t()) :: {:ok, Pleroma.Web.OAuth.Token.t()} | {:error, Ecto.Changeset.t()}
Revokes access token
Link to this function
revoke(app, attrs)
View Sourcerevoke(Pleroma.Web.OAuth.App.t(), map()) :: {:ok, Pleroma.Web.OAuth.Token.t()} | {:error, :not_found | Ecto.Changeset.t()}
Finds and revokes access token for app and by token