magiclinks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 is the default lifetime for verify-email magic links.
	VerifyEmailTTL = 24 * time.Hour

	// ResetPasswordTTL is the default lifetime for reset-password magic links.
	ResetPasswordTTL = 15 * time.Minute

	// PurposeVerifyEmail is the stable purpose string for verify-email tokens.
	PurposeVerifyEmail = "verify_email"

	// PurposeResetPassword is the stable purpose string for reset-password tokens.
	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