IndieWeb.Auth.Token (IndieWeb v0.0.66) View Source

Manages the token lifecycle for IndieAuth.

Link to this section Summary

Link to this section Functions

Link to this function

delete(token, options \\ [])

View Source
Link to this function

generate(code, client_id, redirect_uri, options \\ [])

View Source

Specs

generate(binary(), binary(), binary(), keyword()) ::
  {:ok, binary()} | {:error, atom(), any()}
Link to this function

info_for(token, options \\ [])

View Source

Specs

info_for(binary(), keyword()) :: nil | map() | {:error, any()}

Specs

revoke(binary(), binary()) :: :ok | :revocation_failed

Revokes the provided token against the endpoint.

Specs

verify(binary(), binary()) :: {:ok, map()} | {:error, any()}

Verifies if the provided token is valid.