template-monorepo/internal/model/member/domain/enum/otp_purpose.go

17 lines
457 B
Go

package enum
// OTPPurpose scopes an OTP challenge to a business flow.
type OTPPurpose string
const (
OTPPurposeRegistrationEmail OTPPurpose = "registration_email"
OTPPurposeBusinessEmail OTPPurpose = "business_email"
OTPPurposeBusinessPhone OTPPurpose = "business_phone"
OTPPurposeStepUp OTPPurpose = "step_up"
OTPPurposePasswordReset OTPPurpose = "password_reset"
)
func (p OTPPurpose) String() string {
return string(p)
}