Skip to content

Extend Apple Developer session persistence#171

Merged
Redth merged 1 commit into
mainfrom
redth/apple-signin-persistence
May 25, 2026
Merged

Extend Apple Developer session persistence#171
Redth merged 1 commit into
mainfrom
redth/apple-signin-persistence

Conversation

@Redth
Copy link
Copy Markdown
Owner

@Redth Redth commented May 25, 2026

Apple Developer download sessions were expiring locally after a short window, forcing repeated Apple ID re-authentication even when Apple still accepted the saved cookies. This keeps the app from interrupting users unnecessarily while still clearing sessions when Apple rejects them.

Changes

  • Persist full cookie metadata for Apple Developer download auth and restore legacy saved sessions.
  • Extend the local validity window using cookie expiration or a 30-day fallback for session cookies.
  • Validate saved sessions before Xcode downloads and clear them only on Apple auth rejection.
  • Silently renew restored or near-expiry sessions by calling Apple's session endpoint and saving the refreshed cookie jar.

Validation

  • dotnet test tests/MauiSherpa.Core.Tests/MauiSherpa.Core.Tests.csproj --no-restore --verbosity minimal
  • dotnet build src/MauiSherpa -f net10.0-maccatalyst --no-restore --verbosity minimal

Persist Apple Developer download session cookie metadata, use a longer local validity window, validate saved sessions before Xcode downloads, and silently renew sessions near expiry when Apple still accepts the saved cookies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Redth Redth marked this pull request as ready for review May 25, 2026 18:30
@Redth Redth merged commit 06f3ead into main May 25, 2026
8 checks passed
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.

1 participant