Versions in this module Expand all Collapse all v0 v0.2.0 Jun 28, 2026 Changes in this version + func ContextWithUser[U any](ctx context.Context, u *U) context.Context + func UserFromContext[U any](ctx context.Context) *U + type Authenticator interface + Authenticate func(ctx context.Context, token string) (*authorization.Actor, *U, error) + EnsureRoles func(ctx context.Context, token string, actor *authorization.Actor) (*authorization.Actor, error) + type UserInfo struct + CountryISO string + Email string + FirstName *string + ID string + LastName *string + Locale string + PhoneNumber *string + Username string + type UserResolver interface + Handle func(ctx context.Context, info UserInfo) (*U, error)