feat: use cookie to store jwt token, better performance

This commit is contained in:
Simon Ding
2024-07-28 18:07:24 +08:00
parent b024b5f6dc
commit 3de2f89107
11 changed files with 73 additions and 217 deletions

View File

@@ -49,9 +49,7 @@ class _SystemPageState extends ConsumerState<SystemPage> {
DataCell(Text((item.size ?? 0).readableFileSize())),
DataCell(InkWell(
child: const Icon(Icons.download),
onTap: () => launchUrl(uri,
webViewConfiguration: WebViewConfiguration(
headers: APIs.authHeaders)),
onTap: () => launchUrl(uri),
))
]);
}));