view auth/types.go @ 13:e7ab74d2ad88 default tip

Move to mercurial
author Dennis C. M. <dennis@denniscm.com>
date Wed, 04 Jun 2025 09:38:35 +0100
parents aaf85ae1f942
children
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 User struct {
	Data []struct {
		Id string `json:"id"`
	} `json:"data"`
}

type Auth struct {
	AccessToken  string   `json:"access_token"`
	RefreshToken string   `json:"refresh_token"`
	Scope        []string `json:"scope"`
}