🚧 Stub for config package

This commit is contained in:
Dan Jones 2025-04-02 20:59:40 -05:00
commit 91bbd0f8e2
5 changed files with 471 additions and 1 deletions

19
trakt/oauth.go Normal file
View file

@ -0,0 +1,19 @@
package trakt
type OauthDevice struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`
VerificationUrl string `json:"verification_url"`
ExpiresIn uint16 `json:"expires_in"`
CreatedAt uint64 `json:"created_at,omitempty"`
Interval uint8
}
type Oauth struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
ExpiresIn uint32 `json:"expires_in"`
CreatedAt uint64 `json:"created_at"`
Scope string
}