Teac.OAuth.TokenInfo (teac v1.0.0)

Copy Markdown View Source

The result of validating an OAuth token via Teac.OAuth.validate_token/1.

Contains the scopes currently granted to the token, which is the basis for incremental authorization — detecting which scopes are missing before sending the user through another OAuth consent flow.

Summary

Types

t()

@type t() :: %Teac.OAuth.TokenInfo{
  client_id: String.t(),
  expires_in: non_neg_integer(),
  login: String.t() | nil,
  scopes: [String.t()],
  user_id: String.t() | nil
}