[draft] Move sms verificaiton to otp models

This commit is contained in:
Lakhan Samani
2023-07-12 11:24:13 +05:30
parent 07f71e883b
commit abe809ca68
9 changed files with 78 additions and 23 deletions

View File

@@ -82,6 +82,8 @@ type Provider interface {
UpsertOTP(ctx context.Context, otp *models.OTP) (*models.OTP, error)
// GetOTPByEmail to get otp for a given email address
GetOTPByEmail(ctx context.Context, emailAddress string) (*models.OTP, error)
// GetOTPByPhoneNumber to get otp for a given phone number
GetOTPByPhoneNumber(ctx context.Context, phoneNumber string) (*models.OTP, error)
// DeleteOTP to delete otp
DeleteOTP(ctx context.Context, otp *models.OTP) error