Skip to content

feat: cold-start fetch token-refresh outcome → JS (stacked on cookie PR branch)#1

Open
oferRounds wants to merge 1 commit intopr/android-cookiemanager-cold-startfrom
pr/cold-start-token-refresh-outcome-js
Open

feat: cold-start fetch token-refresh outcome → JS (stacked on cookie PR branch)#1
oferRounds wants to merge 1 commit intopr/android-cookiemanager-cold-startfrom
pr/cold-start-token-refresh-outcome-js

Conversation

@oferRounds
Copy link
Copy Markdown
Owner

This PR exists so GitHub shows a true stack: base = pr/android-cookiemanager-cold-start, head = pr/cold-start-token-refresh-outcome-js.

Files changed here = outcome + JS only (one commit on top of the CookieManager branch).

Upstream (merge targets margelo/main)

Merge margelo#73 first on margelo, then rebase pr/cold-start-token-refresh-outcome-js onto margelo/main and update margelo#74 so it no longer duplicates the cookie diff.

This fork PR can be closed once margelo#74 is rebased and ready for final review.

Made with Cursor

- Android AutoPrefetcher: persist last outcome to SharedPreferences (plaintext key
  nitro_token_refresh_fetch_last_outcome) at each exit: success, failed_skip,
  failed_cache, none, not_run, error.
- iOS NitroAutoPrefetcher: mirror outcome writes to UserDefaults.
- JS: getFetchTokenRefreshLastOutcome(); clearTokenRefresh removes the outcome key.

Depends on Android CookieManager sync PR for a clean AutoPrefetcher history.

Made-with: Cursor
@oferRounds oferRounds force-pushed the pr/cold-start-token-refresh-outcome-js branch from b2927ee to 04f649a Compare April 12, 2026 08:02
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