Documentation ¶
Index ¶
Constants ¶
View Source
const ( JWTTimeWindow = 5 * time.Second TokenIssuer = "vkuth" KindHeaderName = "kind" KindHeaderTokenValue = "token" VkuthKeyHeader = "X-Vkuth-Key" )
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶
Types ¶
type AccessData ¶
type Claims ¶
type Claims struct { *jwt.RegisteredClaims Data Data `json:"vkuth_data"` // contains filtered or unexported fields }
type JWTHelper ¶
type JWTHelper struct {
// contains filtered or unexported fields
}
func (*JWTHelper) ParseVkuthData ¶
func (helper *JWTHelper) ParseVkuthData(accessToken string) (*AccessData, error)
Click to show internal directories.
Click to hide internal directories.