type
AuthSessionInfo
Safe metadata for an active session or device.
Properties
| Property | Type | Description |
|---|---|---|
ID | string | The revocable session identifier, not the bearer token. |
CreatedAt | time.Time | When the session was issued. |
LastSeenAt | time.Time | Persisted activity metadata updated when the session is issued or its token rotates. |
ExpiresAt | time.Time | When the session expires. |
IPAddress | string | Recorded client address metadata. |
UserAgent | string | Recorded device user-agent metadata. |
Current | bool | Reports 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
}