moduleconfig

package
v0.0.0-...-c96426c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = types.Config{
	Create: types.CreateConfig{
		Phone: types.EmailPhoneConfig{
			Require: false,
		},
		Email: types.EmailPhoneConfig{
			Require:    true,
			UseAsLogin: true,
		},
		RequireEither: true,
	},
	Verify: types.VerificationConfig{
		Require:       true,
		EmailSubject:  "Your account verification code",
		ResendTimer:   2 * time.Minute,
		TokenLifetime: 2 * time.Hour,
	},
	RestorePassword: types.RestorePasswordConfig{
		EmailSubject:  "Your password reset token",
		ResendTimer:   1 * time.Minute,
		TokenLifetime: 2 * time.Hour,
	},

	OTPLength: 6,

	BasicConfig: basictypes.BasicConfig{
		RewriteWithJSON: true,
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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