IndieWeb.Plug.InjectCredentials (IndieWeb v0.0.49) View Source

Link to this section Summary

Functions

Finds the user's URL from the provided IndieAuth token.

Finds the user's IndieAuth token from the provided me.

Link to this section Functions

Specs

add(binary(), binary()) ::
  {:ok, [me: binary(), token: binary()]} | {:error, :failed_to_set_token}
Link to this function

find_me_from_token(token)

View Source

Specs

find_me_from_token(binary()) :: binary() | nil

Finds the user's URL from the provided IndieAuth token.

Specs

find_token_from_me(binary()) :: binary() | nil

Finds the user's IndieAuth token from the provided me.

Specs

remove(binary()) :: :ok