MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / UpsertOTP

Method UpsertOTP

internal/storage/provider.go:101–101  ·  view source on GitHub ↗

UpsertOTP to add or update otp

(ctx context.Context, otp *schemas.OTP)

Source from the content-addressed store, hash-verified

99
100 // UpsertOTP to add or update otp
101 UpsertOTP(ctx context.Context, otp *schemas.OTP) (*schemas.OTP, error)
102 // GetOTPByEmail to get otp for a given email address
103 GetOTPByEmail(ctx context.Context, emailAddress string) (*schemas.OTP, error)
104 // GetOTPByPhoneNumber to get otp for a given phone number

Callers 9

TestResendOTPFunction · 0.65
TestResetPasswordFunction · 0.65
TestVerifyOTPFunction · 0.65
ResendOTPMethod · 0.65
LoginMethod · 0.65
SignUpMethod · 0.65
ForgotPasswordMethod · 0.65
testOTPOperationsFunction · 0.65

Calls

no outgoing calls

Tested by 5

TestResendOTPFunction · 0.52
TestResetPasswordFunction · 0.52
TestVerifyOTPFunction · 0.52
testOTPOperationsFunction · 0.52