The highest tagged major version is
v3.
package
Version:
v1.3.3
Opens a new window with list of versions in this module.
Published: Oct 9, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
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.