type

AuthAPIKey

A persisted API-key digest and safe metadata.

Properties

PropertyTypeDescription
IDstringThe ID value.
TokenHashstringThe TokenHash value.
CollectionIDschema.StableIDThe CollectionID value.
UserIDstringThe UserID value.
NamestringThe Name value.
CreatedAttime.TimeThe CreatedAt value.
LastUsedAttime.TimeThe LastUsedAt value.
ExpiresAttime.TimeThe ExpiresAt value.

Full signature

type AuthAPIKey struct { ID string TokenHash string CollectionID schema.StableID UserID string Name string CreatedAt time.Time LastUsedAt time.Time ExpiresAt time.Time }

Source store/store.go:713