Skip to content

Commit b5432cf

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent cb76eff commit b5432cf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/services/auth_service.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ class AuthService {
263263
}
264264

265265
static Future<void> _desktopRefreshIdToken() async {
266+
final sdkUser = _desktopUser?._sdkUser;
267+
if (sdkUser != null) {
268+
try {
269+
_desktopIdToken = await sdkUser.getIdToken(true);
270+
_desktopTokenExpiry = DateTime.now().add(const Duration(hours: 1));
271+
} catch (_) {}
272+
return;
273+
}
274+
266275
final refreshToken = _desktopRefreshToken;
267276
if (refreshToken == null) return;
268277
try {

0 commit comments

Comments
 (0)