Skip to content

Conversation

@ycdzj
Copy link
Contributor

@ycdzj ycdzj commented Nov 12, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 12, 2025 13:54
Copilot finished reviewing on behalf of ycdzj November 12, 2025 13:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a retry mechanism for fetch operations in the Google OAuth service by adding a new fetchWithRetry utility function and applying it to two external API calls.

  • Adds a new fetchWithRetry utility function with configurable retry attempts
  • Replaces direct fetch calls with fetchWithRetry in Google OAuth token and user info endpoints
  • Provides resilience against transient network failures during OAuth flow

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/utils/fetch-with-retry.ts New utility function implementing retry logic for fetch operations with a default of 2 retries
src/auth/google/google.service.ts Updates Google OAuth token and user info API calls to use the new fetchWithRetry function for improved reliability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants