view 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 source

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"`
}