Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type UserInfo ¶
type UserInfo struct {
Sub string `json:"sub"`
FirstName string `json:"firstname"`
Surname string `json:"surname"`
Email string `json:"email"`
}
UserInfo is the response structure of a GetUserInfo operation
type UserSession ¶
type UserSession struct {
UserInfo UserInfo `json:"user_info"`
StartedAt time.Time `json:"started_at"`
ExpireAt time.Time `json:"expire_at"`
}
func NewUserSession ¶
func NewUserSession(userInfo UserInfo, validity time.Duration) *UserSession
func (*UserSession) IsExpired ¶
func (us *UserSession) IsExpired() bool
Click to show internal directories.
Click to hide internal directories.