2026-05-20 07:01:08 +00:00
|
|
|
package enum
|
|
|
|
|
|
|
|
|
|
// OTPPurpose scopes an OTP challenge to a business flow.
|
|
|
|
|
type OTPPurpose string
|
|
|
|
|
|
|
|
|
|
const (
|
2026-05-20 23:51:22 +00:00
|
|
|
OTPPurposeRegistrationEmail OTPPurpose = "registration_email"
|
|
|
|
|
OTPPurposeBusinessEmail OTPPurpose = "business_email"
|
|
|
|
|
OTPPurposeBusinessPhone OTPPurpose = "business_phone"
|
|
|
|
|
OTPPurposeStepUp OTPPurpose = "step_up"
|
|
|
|
|
OTPPurposePasswordReset OTPPurpose = "password_reset"
|
2026-05-20 07:01:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (p OTPPurpose) String() string {
|
|
|
|
|
return string(p)
|
|
|
|
|
}
|