Repository navigation
fix(auth): 登出不再卡在提醒运行时停机 - #388
Merged
Merged
Conversation
首页退出登录会一直转圈,因为失效协调器先等 runtime.stop()(定位 native 可能不返回)才清会话。改为先失效会话,账号清理和定位 stop 加超时。
gac0812
marked this pull request as ready for review
August 26, 2026 06:45
Codecov Report❌ Patch coverage is
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Reviewed the auth invalidation and reminder shutdown changes against the PR contract. The session is now cleared before account cleanup and the timeout addresses the reported hang, but the timeout path needs to preserve the coordinator's shutdown invariant so an in-flight reconcile cannot restart native location updates after logout.
Verification: git diff --check passed. The requested Jest suites could not run because this checkout has no installed dependencies (jest-expo is unavailable).
stop() 与卡在原生查询上的 reconcile 竞态时,超时只能让登出继续,不能让那次 reconcile 在账户失效后再 startLocationUpdatesAsync。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
runtime.stop()(提醒引擎 / 定位 native)才清会话,真机上stopLocationUpdates可能不返回。Fixes #387
Test plan
Verification
cd frontend npx jest --runInBand tests/unit/features/auth/application/AuthInvalidationCoordinator.test.ts tests/unit/features/reminder/application/ReminderGuardCoordinator.test.ts