Versions in this module Expand all Collapse all v1 v1.23.1 Nov 4, 2026 v1.23.0 Nov 3, 2026 Changes in this version + const Audience + const DatabaseUrlVariable + const Issuer + const UnrecordedAuthenticationId + var Authorizer *authorizer_request_parser.Parser + var SessionMethod *altshiftCryptoEddsa.Method + func ApiKeyAuthorizer() (*authorizer_request_parser.Parser, error) + func Db(t testing.TB) *sql.DB + func InsertCustomer(ctx context.Context, db *sql.DB, name string) (string, error) + func Main(m *testing.M, name string) int + func Schema() (string, error) + func SessionManager(db *sql.DB) (*session_manager.Manager, error) + type Account struct + CustomerId string + EmailAddress string + Id string + Roles []string + func InsertAccount(ctx context.Context, db *sql.DB, emailAddress string, customerId string, ...) (*Account, error) + func (account *Account) ActiveSession(ctx context.Context, db *sql.DB) (*Session, error) + func (account *Account) Session() *Session + type Database struct + func NewDatabase(ctx context.Context, databaseUrl string, name string) (*Database, error) + func (database *Database) Close() error + type Session struct + AccountId string + AuthenticationId string + AuthenticationMethods []string + EmailAddress string + Roles []string + func (session *Session) Cookie() (string, error) + func (session *Session) Token() (string, error)