From 1712d30c2fd080ec5266be8decf817bb5c7af487 Mon Sep 17 00:00:00 2001 From: Krille Date: Fri, 8 Mar 2024 12:46:26 +0100 Subject: [PATCH] feat: Support refresh tokens --- lib/utils/client_manager.dart | 1 + pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/utils/client_manager.dart b/lib/utils/client_manager.dart index 86649a48c..23d9b024e 100644 --- a/lib/utils/client_manager.dart +++ b/lib/utils/client_manager.dart @@ -121,6 +121,7 @@ abstract class ClientManager { nativeImplementations: nativeImplementations, customImageResizer: PlatformInfos.isMobile ? customImageResizer : null, enableDehydratedDevices: true, + onSoftLogout: (client) => client.refreshAccessToken(), ); } diff --git a/pubspec.lock b/pubspec.lock index 28066ff41..8bbddd734 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1186,10 +1186,10 @@ packages: dependency: "direct main" description: name: matrix - sha256: "64b71793b689f57521f24d5412dadd090a61762084971ff13c7b8870b3cebeb7" + sha256: aa9a7c641c5f99e7839c62c0461b279e5e9a3e803d400e57110f158ac28763d9 url: "https://pub.dev" source: hosted - version: "0.25.11" + version: "0.26.0" matrix_api_lite: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index d4d574c0d..e11691d1e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -65,7 +65,7 @@ dependencies: keyboard_shortcuts: ^0.1.4 latlong2: ^0.8.1 linkify: ^5.0.0 - matrix: ^0.25.11 + matrix: ^0.26.0 native_imaging: ^0.1.0 package_info_plus: ^5.0.1 pasteboard: ^0.2.0