fix: remove entries from otp + verification when user is deleted

Resolves #234
This commit is contained in:
Lakhan Samani
2022-09-27 00:27:36 +05:30
parent 640bb8c9ed
commit 837fc781de
2 changed files with 39 additions and 0 deletions

View File

@@ -14,3 +14,14 @@ const (
// VerificationTypeOTP is the otp verification type
VerificationTypeOTP = "verify_otp"
)
var (
// VerificationTypes is slice of all verification types
VerificationTypes = []string{
VerificationTypeBasicAuthSignup,
VerificationTypeMagicLinkLogin,
VerificationTypeUpdateEmail,
VerificationTypeForgotPassword,
VerificationTypeInviteMember,
}
)