added support for multiple accounts, guardian login bugfixes, ui changes
This commit is contained in:
@@ -433,6 +433,14 @@ class PushRegistration {
|
||||
/// first, then the proxy) with the new token.
|
||||
Future<void> onTokenRefresh() => register();
|
||||
|
||||
/// Stops pushes for the active account before another one takes over. The
|
||||
/// app passwords stay valid so switching back can re-register silently.
|
||||
Future<void> deactivate() async {
|
||||
if (DemoMode.active) return;
|
||||
if (_nextcloudOrNull == null) return _direct.unregister();
|
||||
await unregister();
|
||||
}
|
||||
|
||||
/// Full teardown for logout: unregister push, revoke BOTH app passwords
|
||||
/// (each authenticated with itself — the endpoint revokes the credential it
|
||||
/// is called with), then clear them locally. Ordered so the proxy stops
|
||||
|
||||
Reference in New Issue
Block a user