view auth/types.go @ 12:aaf85ae1f942

add very simple html template
author Dennis C. M. <dennis@denniscm.com>
date Thu, 20 Mar 2025 11:12:21 +0000
parents e9df3bb010f4
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"`
}