Versions in this module Expand all Collapse all v0 v0.0.14 Apr 22, 2026 v0.0.13 Apr 22, 2026 Changes in this version + const DefaultSkewMS + const EventError + const EventRevoke + var ErrTokenInvalid = errors.New("token value is invalid") + var ErrTokenMissing = errors.New("token value is not available") + var ErrTokenUnavailable = errors.New("window.Token is not available") + type Auth struct + func New(baseUrl string, key string) (*Auth, error) + func (a *Auth) Revoke() error + func (a *Auth) Valid() bool + type RevokeRequest struct + Token string + type Token struct + func NewToken(key string) (*Token, error) + func (t *Token) Delete() (*TokenValue, error) + func (t *Token) JSValue() js.Value + func (t *Token) Read() (*TokenValue, error) + func (t *Token) Valid(value ...*TokenValue) (*TokenValue, error) + func (t *Token) Write(value *TokenValue) (*TokenValue, error) + type TokenValue struct + AccessToken string + ExpiresIn int64 + Expiry string + RefreshToken string + StoredAt string + TokenType string