fix(app) backported some things agent broke in lab2 and bugfixed other autocheck issues manually

This commit is contained in:
imadev
2026-10-24 00:39:07 +03:00
parent c1b25c507d
commit d14fed291e
6 changed files with 26 additions and 24 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func (s *Store) Create(ctx context.Context, userID uuid.UUID) (string, time.Time
return "", time.Time{}, fmt.Errorf("generate token: %w", err)
}
token := base64.RawURLEncoding.EncodeToString(raw)
expiresAt := time.Now().UTC().Truncate(time.Second).Add(s.ttl)
expiresAt := time.Now().UTC().Add(s.ttl)
opCtx, cancel := context.WithTimeout(ctx, s.timeout)
defer cancel()