merge: maestro/tsk__bm21nctbhWF into main (bulk integration)
# Conflicts: # client/lib/widgets/auth_screen.dart
This commit is contained in:
@@ -53,13 +53,6 @@ class AuthNotifier extends StateNotifier<AuthState> {
|
|||||||
await _store.clear();
|
await _store.clear();
|
||||||
state = const AuthState();
|
state = const AuthState();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Dev-only:仅设置内存登录态,不写 keychain。
|
|
||||||
/// 用于 debug 测试账户旁路,规避 flutter_secure_storage 在未签名
|
|
||||||
/// macOS app 上的 keychain entitlement 问题(-34018)。
|
|
||||||
void devLogin(String token) {
|
|
||||||
state = AuthState(accessToken: token);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Providers ────────────────────────────────────────────────────────
|
// ── Providers ────────────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -10,5 +10,10 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.network.server</key>
|
<key>com.apple.security.network.server</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<!-- flutter_secure_storage: Data Protection Keychain 需要此 entitlement,否则返回 -34018 -->
|
||||||
|
<key>keychain-access-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>$(AppIdentifierPrefix)com.pangolin.pangolinVpn</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -6,5 +6,10 @@
|
|||||||
<false/>
|
<false/>
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<!-- flutter_secure_storage: Data Protection Keychain 需要此 entitlement,否则返回 -34018 -->
|
||||||
|
<key>keychain-access-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>$(AppIdentifierPrefix)com.pangolin.pangolinVpn</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
Reference in New Issue
Block a user