type

AuthSession

A persisted opaque session digest and safe metadata.

Properties

PropertyTypeDescription
IDstringThe ID value.
TokenHashstringThe TokenHash value.
CollectionIDschema.StableIDThe CollectionID value.
UserIDstringThe UserID value.
ExpiresAttime.TimeThe ExpiresAt value.
CreatedAttime.TimeThe CreatedAt value.
LastSeenAttime.TimeThe LastSeenAt value.
IPAddressstringThe IPAddress value.
UserAgentstringThe UserAgent value.

Full signature

type AuthSession struct { ID string TokenHash string CollectionID schema.StableID UserID string ExpiresAt time.Time CreatedAt time.Time LastSeenAt time.Time IPAddress string UserAgent string }

Source store/store.go:699