Versions in this module Expand all Collapse all v0 v0.1.1 Oct 25, 2026 v0.1.0 Oct 12, 2026 Changes in this version + var ErrCleanupPending = errors.New("accounts: local cleanup is pending") + var ErrNotDeleted = errors.New("accounts: the identity provider did not delete the account") + var ErrNotFound = errors.New("accounts: account not found") + var Migrations = app.Migrations + type Account struct + CreatedAt time.Time + Email string + ID string + func Current(c *gin.Context) Account + type Accounts struct + func New(a *app.App, idp identity.Provider, cfg Config) (*Accounts, error) + func (s *Accounts) Delete(c *gin.Context) error + func (s *Accounts) Get(ctx context.Context, id string) (Account, error) + func (s *Accounts) Mount(r gin.IRouter, layout ui.Layout) + func (s *Accounts) OnDelete(hook func(ctx context.Context, tx *sql.Tx, accountID string) error) + func (s *Accounts) Pages(layout ui.Layout) *Pages + func (s *Accounts) RequireSignIn(c *gin.Context) + type Config struct + Paths Paths + type Pages struct + func (p *Pages) Delete(c *gin.Context) + func (p *Pages) DeleteForm(c *gin.Context) + func (p *Pages) Deleted(c *gin.Context) + func (p *Pages) EmailChanged(c *gin.Context) + func (p *Pages) Logout(c *gin.Context) + func (p *Pages) MountProfile(settings gin.IRouter) + func (p *Pages) Settings(c *gin.Context) + func (p *Pages) Unverified(c *gin.Context) + type Paths struct + Delete string + Deleted string + EmailChanged string + Login string + Logout string + Settings string + Unverified string