feat: ios widget supports alternate server URLs

This commit is contained in:
bwees
2025-06-23 17:41:55 -05:00
parent 1923f1a887
commit 99a9914da2
6 changed files with 125 additions and 22 deletions
+3 -4
View File
@@ -118,10 +118,8 @@ class AuthNotifier extends StateNotifier<AuthState> {
}) async {
await _apiService.setAccessToken(accessToken);
await _widgetService.writeCredentials(
Store.get(StoreKey.serverEndpoint),
accessToken,
);
await _widgetService.writeSessionKey(accessToken);
await _widgetService.writeServerList();
// Get the deviceid from the store if it exists, otherwise generate a new one
String deviceId =
@@ -190,6 +188,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
Future<void> saveLocalEndpoint(String url) async {
await Store.put(StoreKey.localEndpoint, url);
await _widgetService.writeServerList();
}
String? getSavedWifiName() {