♻️ Replace storage token engine to prevent some platform specific issue

This commit is contained in:
2024-11-23 19:54:38 +08:00
parent dfd80021b9
commit 3cd08da3b6
11 changed files with 53 additions and 83 deletions

View File

@ -151,7 +151,7 @@ class _LoginCheckScreenState extends State<_LoginCheckScreen> {
});
final atk = tokenResp.data['access_token'];
final rtk = tokenResp.data['refresh_token'];
await sn.setTokenPair(atk, rtk);
sn.setTokenPair(atk, rtk);
if (!mounted) return;
final user = context.read<UserProvider>();
final userinfo = await user.refreshUser();