type
PasswordResetNotification
Trusted password-reset delivery payload.
Properties
| Property | Type | Description |
|---|---|---|
Collection | schema.CollectionSlug | The auth collection containing the user. |
User | store.Document | A detached snapshot of the user document. |
Token | string | The raw single-use reset token. |
ExpiresAt | time.Time | The instant after which the token is invalid. |
How it works
Token is shown once and must never be logged. Build and deliver the application-owned reset link inside the trusted callback.
Full signature
type PasswordResetNotification struct {
Collection schema.CollectionSlug
User store.Document
Token string
ExpiresAt time.Time
}