struct

KemalIdentity::Sessions::Issued

Inherits Struct < Value < Object

A freshly issued session: the raw secret for the browser, the row that was stored, and the principal it resolves to.

The raw token is a Secret, so it redacts itself in logs and crash reports. It exists only long enough to be written into a Set-Cookie — nothing persists it, and spec/security/token_storage_spec.cr asserts it never reaches a row.

Constructors

new(token : Secret, record : Record, principal : Principal)
Source

Instance methods

principal
Source
record
Source
token
Source