magiclinks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package magiclinks holds shared semantics for one-shot email tokens used by the verify-email and password-reset flows: TTL defaults and stable purpose strings used as DB enums. No DB dependency.

Index

Constants

View Source
const (
	VerifyEmailTTL   = 24 * time.Hour
	ResetPasswordTTL = 15 * time.Minute

	PurposeVerifyEmail   = "verify_email"
	PurposeResetPassword = "reset_password"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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