Mercurial > public > pacobot
diff auth/types.go @ 8:e9df3bb010f4
fix issues
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 13 Mar 2025 17:41:42 +0000 |
parents | |
children | aaf85ae1f942 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/auth/types.go Thu Mar 13 17:41:42 2025 +0000 @@ -0,0 +1,19 @@ +package auth + +type Config struct { + ClientId string `json:"client_id"` + ClientSecret string `json:"client_secret"` + BroadcasterUserId string `json:"broadcaster_user_id"` +} + +type UserRes struct { + Data []struct { + Id string `json:"id"` + } `json:"data"` +} + +type AuthRes struct { + AccessToken string `json:"access_token"` + RefreshToken string `json:"refresh_token"` + Scope []string `json:"scope"` +}