Versions in this module Expand all Collapse all v0 v0.1.1 Nov 12, 2026 v0.1.0 Oct 14, 2026 Changes in this version + const ColData + const ColExpiresAt + const ColSessionID + const ColUpdatedAt + const ColUserID + const PluginName + const TableAliasData + const TableNameData + var DataExpiresAt = sqlb.Col[time.Time](TableData, ColExpiresAt) + var DataSessionID = sqlb.Col[string](TableData, ColSessionID) + var DataUpdatedAt = sqlb.Col[time.Time](TableData, ColUpdatedAt) + var DataUserID = sqlb.Col[string](TableData, ColUserID) + var DataValue = sqlb.Col[auth.AppData](TableData, ColData) + var TableData = sqlb.Table + func GetFor[T any](ctx context.Context, p *Plugin, sessionID string) (v T, ok bool, err error) + func Get[T any](ctx context.Context, p *Plugin) (v T, ok bool, err error) + type Initial func(ctx context.Context, s auth.Session) (any, error) + type Option func(*Plugin) + func WithInitial(fn Initial) Option + type Plugin struct + func New(opts ...Option) *Plugin + func (p *Plugin) DataHooks() auth.DataHooks + func (p *Plugin) Init(a *auth.Auth) error + func (p *Plugin) Name() string + func (p *Plugin) OptionErr() error + func (p *Plugin) SessionEnded(ctx context.Context, userID, id string) error + func (p *Plugin) SessionReplaced(ctx context.Context, old, new auth.Session) error + func (p *Plugin) Set(ctx context.Context, v any) error + func (p *Plugin) SetFor(ctx context.Context, s auth.Session, v any) error + func (p *Plugin) Sweep(ctx context.Context, cutoff time.Time) (int64, error) + func (p *Plugin) Tables() []sqlb.Table + func (p *Plugin) TypedMigrations(engine string, t auth.SQLTypes) ([]auth.Migration, error) + func (p *Plugin) UserSessionsEnded(ctx context.Context, userID, exceptID string) error + func (p *Plugin) UserTables() []auth.UserTable