moved auth structs

This commit is contained in:
zomo
2026-01-05 23:23:13 -06:00
parent 5c6e93c7e4
commit 81e8bca787
2 changed files with 20 additions and 20 deletions

View File

@@ -17,23 +17,3 @@ func InitTwitchConn(conf *util.Config, dbConn *db.DBConn) (*TwitchConn, error) {
type TwitchConn struct {
Auth *TwitchAuth
}
type TwitchAuthRespOk struct {
Code string `json:"code"`
Scope string `json:"scope"`
State string `json:"state"`
}
type TwitchAuthRespErr struct {
Err string `json:"error"`
ErrDesc string `json:"error_description"`
State string `json:"state"`
}
type TwitchAuthTokenResp struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
Scope []string `json:"scope"`
TokenType string `json:"token_type"`
}