Versions in this module Expand all Collapse all v0 v0.1.1 Feb 21, 2022 v0.1.0 Feb 19, 2022 Changes in this version + var ErrSessionTokenExpired = errors.New("authik: session token has expired") + var ErrSessionTokenInvalid = errors.New("authik: session token is invalid") + var ErrSessionTokenMissing = errors.New("authik: provided request did not have a session token in its cookies") + func Bool(v bool) *bool + func String(v string) *string + type APIError struct + Code string + Message string + Resource string + Type string + func (e *APIError) Error() string + type Client struct + func New(secretKey string) (*Client, error) + func PrivateNew(secretKey string, privateOptions *PrivateOptions) (*Client, error) + func (client *Client) GetUser(id string) (*User, error) + func (client *Client) VerifySessionToken(token string) (*SessionToken, error) + func (client *Client) VerifySessionTokenRequest(request *http.Request) (*SessionToken, error) + type Email struct + Address string + CreatedAt string + ID string + Resource string + Status EmailStatus + VerifiedAt *string + VerifiedVia ... + type EmailStatus string + const EmailStatusUnverified + const EmailStatusVerified + type EmailVerifiedViaType string + const EmailVerifiedViaTypeLogin + type PrivateOptions struct + APIURL *string + type SessionToken struct + ExpiresAt time.Time + IssuedAt time.Time + SessionID string + UserID string + Value string + type User struct + AvatarURL *string + CreatedAt string + Email *Email + EmailAddress *string + EmailID *string + ID string + LastLoginAt *string + Name *string + NameDetails ... + Resource string