Versions in this module Expand all Collapse all v0 v0.2.0 Nov 25, 2026 Changes in this version type PersonStore + SetAccess func(ctx context.Context, id core.PersonID, until *time.Time, perms []string) error + type PurgeStats struct + Audit int + Clients int + Codes int + Invites int + Tokens int + type Purger interface + Purge func(ctx context.Context, now time.Time) (PurgeStats, error) v0.1.0 Nov 24, 2026 Changes in this version + type AccountStore interface + Create func(ctx context.Context, a core.Account) error + Delete func(ctx context.Context, id core.AccountID) error + Get func(ctx context.Context, id core.AccountID) (core.Account, error) + List func(ctx context.Context) ([]core.Account, error) + Rename func(ctx context.Context, id core.AccountID, name string) error + type AuditStore interface + Append func(ctx context.Context, e core.AuditEntry) error + ListByAccount func(ctx context.Context, a core.AccountID, before string, limit int) ([]core.AuditEntry, error) + ListSystem func(ctx context.Context, before string, limit int) ([]core.AuditEntry, error) + type Cascade interface + DeleteAccount func(ctx context.Context, a core.AccountID) error + DeletePerson func(ctx context.Context, p core.PersonID) error + type InviteStore interface + Consume func(ctx context.Context, tokenHash []byte, now time.Time) (core.Invite, error) + Create func(ctx context.Context, inv core.Invite) error + ListByAccount func(ctx context.Context, a core.AccountID) ([]core.Invite, error) + Peek func(ctx context.Context, tokenHash []byte, now time.Time) (core.Invite, error) + Revoke func(ctx context.Context, id string, at time.Time) error + RevokeKind func(ctx context.Context, kind core.InviteKind, at time.Time) error + type OAuthStore interface + ConsumeCode func(ctx context.Context, codeHash []byte, now time.Time) (core.AuthCode, error) + DeleteExpiredTokens func(ctx context.Context, now time.Time) (int, error) + DeleteIdleClients func(ctx context.Context, cutoff time.Time) (int, error) + FindGrant func(ctx context.Context, p core.PersonID, c core.ClientID, r core.ResourceID) (core.Grant, error) + GetClient func(ctx context.Context, id core.ClientID) (core.OAuthClient, error) + GetGrant func(ctx context.Context, id core.GrantID) (core.Grant, error) + GetToken func(ctx context.Context, hash []byte) (core.Token, error) + ListGrantsByAccount func(ctx context.Context, a core.AccountID) ([]core.Grant, error) + PutClient func(ctx context.Context, c core.OAuthClient) error + PutCode func(ctx context.Context, c core.AuthCode) error + PutGrant func(ctx context.Context, g core.Grant) error + PutToken func(ctx context.Context, t core.Token) error + RevokeFamily func(ctx context.Context, family string, at time.Time) error + RevokeGrant func(ctx context.Context, id core.GrantID, at time.Time) error + RevokeGrantsByResource func(ctx context.Context, r core.ResourceID, at time.Time) error + RevokeToken func(ctx context.Context, hash []byte, at time.Time) error + TouchClient func(ctx context.Context, id core.ClientID, at time.Time) error + TouchGrant func(ctx context.Context, id core.GrantID, at time.Time) error + UseRefresh func(ctx context.Context, hash []byte, at time.Time) (core.Token, error) + type PasskeyStore interface + Add func(ctx context.Context, k core.Passkey) error + Delete func(ctx context.Context, id string) error + DeleteByPerson func(ctx context.Context, p core.PersonID) error + Get func(ctx context.Context, id string) (core.Passkey, error) + GetByCredentialID func(ctx context.Context, credentialID []byte) (core.Passkey, error) + ListByPerson func(ctx context.Context, p core.PersonID) ([]core.Passkey, error) + Rename func(ctx context.Context, id, name string) error + Update func(ctx context.Context, id string, data []byte, lastUsed time.Time) error + type PersonStore interface + CountSuperadmins func(ctx context.Context) (int, error) + Create func(ctx context.Context, p core.Person) error + Delete func(ctx context.Context, id core.PersonID) error + Disable func(ctx context.Context, id core.PersonID, at time.Time) error + Get func(ctx context.Context, id core.PersonID) (core.Person, error) + ListByAccount func(ctx context.Context, a core.AccountID) ([]core.Person, error) + Rename func(ctx context.Context, id core.PersonID, name string) error + type SessionStore interface + Create func(ctx context.Context, s core.Session) error + Delete func(ctx context.Context, idHash []byte) error + DeleteByPerson func(ctx context.Context, p core.PersonID) error + DeleteExpired func(ctx context.Context, now time.Time, idle time.Duration) (int, error) + Get func(ctx context.Context, idHash []byte) (core.Session, error) + SetStepUp func(ctx context.Context, idHash []byte, until time.Time) error + Touch func(ctx context.Context, idHash []byte, at time.Time) error + type Store interface + Accounts func() AccountStore + Audit func() AuditStore + Close func() error + Invites func() InviteStore + OAuth func() OAuthStore + Passkeys func() PasskeyStore + People func() PersonStore + Sessions func() SessionStore + Tx func(ctx context.Context, fn func(ctx context.Context) error) error