View Source TwitchAPI.Auth (hello_twitch_api v0.4.1)

Auth struct.

Summary

Functions

Make a new Auth struct.

Revoke an access token.

Types

@type t() :: %TwitchAPI.Auth{access_token: String.t() | nil, client_id: String.t()}

Functions

Link to this function

new(client_id, access_token \\ nil)

View Source
@spec new(client_id :: String.t(), access_token :: String.t() | nil) :: t()

Make a new Auth struct.

@spec revoke_token!(Auth.t()) :: Req.Response.t()

Revoke an access token.