Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenVerify ¶ added in v0.2.2
type AccessTokenVerify struct {
ClientID string `json:"client_id"`
ExpiresIn int `json:"expires_in"`
Scope string `json:"scope"`
}
func VerifyAccessToken ¶
func VerifyAccessToken(accessToken string) (*AccessTokenVerify, error)
type IDTokenVerify ¶ added in v0.2.2
type IDTokenVerify struct {
ISS string `json:"iss"`
Aud string `json:"aud"`
Exp int `json:"exp"`
Iat int `json:"iat"`
Sub string `json:"sub"`
Name string `json:"name"`
Picture string `json:"picture"`
Amr []string `json:"amr"`
Email string `json:"email"`
}
func VerifyIDToken ¶
func VerifyIDToken(IDToken, ChannelID string) (*IDTokenVerify, error)
Click to show internal directories.
Click to hide internal directories.