fix(client): 去 dev 旁路 + 修 macOS keychain -34018 [tsk__bm21nctbhWF]

1. 去 dev 旁路:删除 auth_screen.dart 中 test@pangolin.dev 预填 + devLogin
   跳过后端分支,以及 auth_provider.dart 的 devLogin() 方法。

2. 修 keychain -34018(errSecMissingEntitlement):
   在 DebugProfile.entitlements / Release.entitlements 中添加
   keychain-access-groups($(AppIdentifierPrefix)com.pangolin.pangolinVpn),
   使 flutter_secure_storage 的 Data Protection Keychain API 获得正确 entitlement。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-16 13:21:38 +08:00
parent fe16f89bc3
commit f3cc2dfc2d
4 changed files with 10 additions and 26 deletions
-7
View File
@@ -53,13 +53,6 @@ class AuthNotifier extends StateNotifier<AuthState> {
await _store.clear();
state = const AuthState();
}
/// Dev-only:仅设置内存登录态,不写 keychain。
/// 用于 debug 测试账户旁路,规避 flutter_secure_storage 在未签名
/// macOS app 上的 keychain entitlement 问题(-34018)。
void devLogin(String token) {
state = AuthState(accessToken: token);
}
}
// ── Providers ────────────────────────────────────────────────────────