Pristine.Ports.TokenSource behaviour (Pristine v0.3.0)

Copy Markdown View Source

Boundary for retrieving and storing OAuth2 tokens.

Summary

Callbacks

fetch(keyword)

@callback fetch(keyword()) :: {:ok, Pristine.OAuth2.Token.t()} | :error | {:error, term()}

put(t, keyword)

@callback put(Pristine.OAuth2.Token.t(), keyword()) :: :ok | {:error, term()}