update rootless app

This commit is contained in:
eventlOwOp
2024-07-02 13:43:54 +08:00
parent 19e9c26f59
commit e2c0c3a515
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class AuthedClient {
late Future<AuthedClientInner> client;
Future<AuthedClientInner> loadSecret() async {
final path = (await getApplicationDocumentsDirectory()).path;
final file = File('$path/authtoken');
final file = File('$path/run/authtoken');
final token = await file.readAsString();
return AuthedClientInner(token.trim(), http.Client());