Oidcc.Token.Access (Oidcc v3.5.1)
View SourceAccess Token struct.
Summary
Functions
Generate a map of authorization headers to use when using the given
Oidcc.Token.Access
struct to access an API endpoint.
Types
@type t() :: %Oidcc.Token.Access{ expires: pos_integer() | :undefined, token: String.t(), type: String.t() }
Functions
@spec authorization_headers( access_token :: t(), method :: :get | :post, endpoint :: String.t(), client_context :: Oidcc.ClientContext.t(), opts :: :oidcc_token.authorization_headers_opts() ) :: %{required(String.t()) => String.t()}
Generate a map of authorization headers to use when using the given
Oidcc.Token.Access
struct to access an API endpoint.