relax expiry of otp tokens

This commit is contained in:
Asim Aslam
2021-11-30 10:30:20 +00:00
parent 6f6686e3c1
commit 3cc3329e29

View File

@@ -276,7 +276,7 @@ func (s *User) SendVerificationEmail(ctx context.Context, req *pb.SendVerificati
// generate a new OTP code
resp, err := s.Otp.Generate(ctx, &otp.GenerateRequest{
Expiry: 300,
Expiry: 900,
Id: req.Email,
})
@@ -306,7 +306,7 @@ func (s *User) SendPasswordResetEmail(ctx context.Context, req *pb.SendPasswordR
// generate a new OTP code
resp, err := s.Otp.Generate(ctx, &otp.GenerateRequest{
Expiry: 300,
Expiry: 900,
Id: req.Email,
})