Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSessionNotFound = errors.New("session: session not found")
)
Common errors
Functions ¶
Types ¶
type Session ¶
type Session struct {
ID string
Email string
Name string // User's display name from OAuth2 provider
Provider string // OAuth2 provider name or "email" for email auth
Extra map[string]interface{} // Additional user data from OAuth2 provider (for custom forwarding)
CreatedAt time.Time
ExpiresAt time.Time
Authenticated bool
}
Session represents a user session
func Get ¶
Get retrieves a session from KVS by ID. Returns ErrSessionNotFound if the session doesn't exist or has expired.
Click to show internal directories.
Click to hide internal directories.