mailbox

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mailbox reads the tokens heimdall emailed, the same way a user would.

Verification and password-reset tokens are stored hashed, so the database no longer holds anything a test can submit — which is the point of hashing them. The test stack uses the console email client, which logs each message as structured JSON, so the container log is the test suite's inbox.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PasswordResetToken

func PasswordResetToken(t *testing.T, email string) string

PasswordResetToken returns the token from the most recent reset email sent to this address.

func VerificationToken

func VerificationToken(t *testing.T, email string) string

VerificationToken returns the token from the most recent verification email sent to this address.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL