type
SessionTokenEnvelope
SessionTokenEnvelope is returned to token-transport clients after login or rotation. Session is safe to serialize into rendered pages; Token is the bearer secret and must not be.
Properties
| Property | Type | Description |
|---|---|---|
Session | AuthSession[User] | The Session value. |
Token | string | The Token value. |
Full signature
type SessionTokenEnvelope[User any] struct {
Session AuthSession[User] `json:"session"`
Token string `json:"token"`
}