type

APIKey

type APIKey struct { ID string Name string Key string CreatedAt time.Time ExpiresAt time.Time }

A newly minted API key and its one-time secret.

Source core/auth.go:59

IDstring
The stable revocable key identifier.
Namestring
The author-facing key label.
Keystring
The raw bearer secret, shown only at creation.
CreatedAttime.Time
When the key was created.
ExpiresAttime.Time
When the key expires, or the zero time when it does not.

Key is a bearer secret. Persist it in the caller’s secret store because Ridu cannot display it again.