add service
All checks were successful
Deploy Smart Search Backend Test / deploy (push) Successful in 1m53s
All checks were successful
Deploy Smart Search Backend Test / deploy (push) Successful in 1m53s
This commit is contained in:
@@ -61,7 +61,7 @@ func (s *authService) Login(ctx context.Context, email, password, ip, userAgent
|
||||
RefreshToken: refreshToken,
|
||||
IP: ip,
|
||||
UserAgent: userAgent,
|
||||
ExpiresAt: time.Now().Add(30 * 24 * time.Hour),
|
||||
ExpiresAt: time.Now().Add(24 * time.Hour),
|
||||
}
|
||||
|
||||
if err := s.sessionRepo.Create(ctx, session); err != nil {
|
||||
@@ -175,7 +175,7 @@ func (s *authService) Register(ctx context.Context, email, password, name, phone
|
||||
RefreshToken: refreshToken,
|
||||
IP: ip,
|
||||
UserAgent: userAgent,
|
||||
ExpiresAt: time.Now().Add(30 * 24 * time.Hour),
|
||||
ExpiresAt: time.Now().Add(24 * time.Hour),
|
||||
}
|
||||
|
||||
if err := s.sessionRepo.Create(ctx, session); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user