Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.OAuth.Token View Source
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
create_token(app, user, attrs \\ %{})
View Sourcecreate_token(Pleroma.Web.OAuth.App.t(), Pleroma.User.t(), map()) :: {:ok, Pleroma.Web.OAuth.Token} | {:error, Changeset.t()}
Link to this function
exchange_token(app, auth)
View Sourceexchange_token(Pleroma.Web.OAuth.App.t(), Pleroma.Web.OAuth.Authorization.t()) :: {:ok, Pleroma.Web.OAuth.Token.t()} | {:error, Changeset.t()}
Link to this function
get_by_refresh_token(app, token)
View Sourceget_by_refresh_token(Pleroma.Web.OAuth.App.t(), String.t()) :: {:ok, t()} | {:error, :not_found}
Gets token for app by refresh token
Link to this function
get_by_token(app, token)
View Sourceget_by_token(Pleroma.Web.OAuth.App.t(), String.t()) :: {:ok, t()} | {:error, :not_found}
Gets token for app by access token