Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeNow = func() time.Time { return time.Now() }
Functions ¶
func GetAuthToken ¶
Types ¶
type Token ¶
type Token struct {
Token string `json:"-"`
Sub string `json:"sub,omitempty"`
RealmAccess map[string][]string `json:"realm_access,omitempty"`
Expiration int64 `json:"exp"`
Email string `json:"email"`
EmailVerified bool `json:"email_verified"`
}
func ParseAndValidateToken ¶
func (*Token) ExpiresBefore ¶ added in v0.0.10
Click to show internal directories.
Click to hide internal directories.