Skip to content

fix(OAuthAuthenticator): Callback failure when no refresh token - #206

Merged
PhilippeWeidmann merged 3 commits into
masterfrom
fix/oauthauthenticator
Oct 19, 2026
Merged

PhilippeWeidmann merged 3 commits into
masterfrom
fix/oauthauthenticator

Conversation

@PhilippeWeidmann

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 11:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused changes preserve other refresh outcomes, with no blocking issues identified.

0 open findings

What changed in this PR

Fixes OAuth refresh completion handling when no refresh token is available.

Changes:

  • Returns a failure for InfomaniakLoginError.noRefreshToken instead of succeeding with the old credential.
  • Allows initialization with a nil refresh-token delegate.
File Description
Sources/​InfomaniakCore/​Networking/​ApiFetcher.swift Propagates missing-refresh-token failures and accepts an optional delegate.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@adrien-coye adrien-coye left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@PhilippeWeidmann
PhilippeWeidmann force-pushed the fix/oauthauthenticator branch 2 times, most recently from 7d59c55 to 4f9453b Compare October 19, 2026 11:20
@sonarqubecloud

Copy link
Copy Markdown

@PhilippeWeidmann
PhilippeWeidmann merged commit 7a8ab41 into master Oct 19, 2026
12 checks passed
@PhilippeWeidmann
PhilippeWeidmann deleted the fix/oauthauthenticator branch October 19, 2026 13:46
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.

3 participants