type

AuthSessionInfo

Safe metadata for an active session or device.

Properties

PropertyTypeDescription
IDstringThe revocable session identifier, not the bearer token.
CreatedAttime.TimeWhen the session was issued.
LastSeenAttime.TimePersisted activity metadata updated when the session is issued or its token rotates.
ExpiresAttime.TimeWhen the session expires.
IPAddressstringRecorded client address metadata.
UserAgentstringRecorded device user-agent metadata.
CurrentboolReports whether this is the session making the request.

Full signature

type AuthSessionInfo struct { ID string CreatedAt time.Time LastSeenAt time.Time ExpiresAt time.Time IPAddress string UserAgent string Current bool }

Source core/auth.go:51