Skip to content

fix(kit): harden offline auth revocation and recovery - #35

Merged
rdlabo merged 3 commits into
mainfrom
fix/offline-auth-revocation-retry
Jul 25, 2026
Merged

fix(kit): harden offline auth revocation and recovery#35
rdlabo merged 3 commits into
mainfrom
fix/offline-auth-revocation-retry

Conversation

@rdlabo

@rdlabo rdlabo commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

概要

オフライン認証の権限失効とremote復旧を、製品ごとの回避策ではなくkitの共通契約として強化します。

変更内容

  • OfflineCoordinatorService.clearActiveSession() 呼び出し時に、永続削除の完了を待たずlocal/outbox・remote syncのruntime accessを同期的に失効
  • local access中は、availabilityの新規イベントがなくてもremote認証を再試行
  • 再試行間隔を remoteRecovery.retryDelayMs で設定可能にし、既定値を30秒に設定
  • remote復旧成功・明示拒否・access失効時は保留中timerを解除

背景

  • HTTP 401/403後、非同期のmanifest削除中にlocal mutationを追加できる競合があった
  • API障害だけが復旧しOS接続状態が変化しない場合、availabilityが再発火せずlocal modeへ固定されることがあった

後方互換

  • 既存APIの引数・戻り値は変更しない
  • retryDelayMs はoptional
  • remote recovery未使用のアプリには動作変更なし

検証

  • npx ng test kit --watch=false(35 files / 474 tests)
  • npm run lint
  • npm run prebuild:kit
  • git diff --check

@netlify

netlify Bot commented Jul 25, 2026

Copy link
Copy Markdown

Deploy Preview for rdlabo-ionic-angular-library ready!

Name Link
🔨 Latest commit 6aa4d19
🔍 Latest deploy log https://app.netlify.com/projects/rdlabo-ionic-angular-library/deploys/6a64402e6eaf310008705296
😎 Deploy Preview https://deploy-preview-35--rdlabo-ionic-angular-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rdlabo
rdlabo marked this pull request as ready for review July 25, 2026 04:51
@rdlabo
rdlabo merged commit d925926 into main Jul 25, 2026
12 checks passed

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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