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

Functions

Revokes access token

Finds and revokes access token for app and by token

Link to this section Functions

Revokes access token

Link to this function

revoke(app, attrs)

View Source
revoke(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