package
Version:
v3.0.1
Opens a new window with list of versions in this module.
Published: Jan 31, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package oauth contains types for the OAuth APIs
Profile type
const (
ProfileD3 Profile = "d3.profile"
ProfileSC2 Profile = "sc2.profile"
ProfileWoW Profile = "wow.profile"
)
PRofile field authorize scopes
type TokenValidation struct {
Exp int `json:"exp"`
Username string `json:"user_name"`
Authorities []string `json:"authorities"`
ClientID string `json:"client_id"`
Scope []string `json:"scope"`
}
TokenValidation contains token validation data
type UserInfo struct {
Sub string `json:"sub"`
ID int `json:"id"`
Battletag string `json:"battletag"`
}
UserInfo structure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.