IndieWeb.Auth.Token (IndieWeb v0.0.49) 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
Link to this function

info_for(token, options \\ [])

View Source

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.