Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.OAuth.Token.Utils View Source

Auxiliary functions for dealing with tokens.

Link to this section Summary

Functions

Fetch app by client credentials from request

convert token inserted_at to unix timestamp

Link to this section Functions

Link to this function

fetch_app(conn)

View Source
fetch_app(Plug.Conn.t()) ::
  {:ok, Pleroma.Web.OAuth.App.t()} | {:error, :not_found}

Fetch app by client credentials from request

Link to this function

format_created_at(token)

View Source

convert token inserted_at to unix timestamp