Account page two pane

This commit is contained in:
2024-05-02 12:51:16 +08:00
parent 3089e1f8d2
commit 52c09151a6
4 changed files with 161 additions and 113 deletions

View File

@ -7,7 +7,9 @@ import 'package:solian/utils/http.dart';
import 'package:solian/utils/service_url.dart';
class AuthProvider extends ChangeNotifier {
AuthProvider();
AuthProvider() {
loadClient();
}
final deviceEndpoint = getRequestUri('passport', '/api/notifications/subscribe');
final tokenEndpoint = getRequestUri('passport', '/api/auth/token');
@ -39,6 +41,7 @@ class AuthProvider extends ChangeNotifier {
return false;
}
} else {
client = HttpClient(onTokenRefreshed: setToken);
return false;
}
}