From 9a435d72bfe3e8ba9553f2d7db5d6847f63a98b2 Mon Sep 17 00:00:00 2001 From: Hassan Ben Jobrane Date: Thu, 14 Nov 2024 13:07:17 +0100 Subject: [PATCH] fix dart linter error --- .../nhost_auth_dart/lib/src/auth_client.dart | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/packages/nhost_auth_dart/lib/src/auth_client.dart b/packages/nhost_auth_dart/lib/src/auth_client.dart index 00b994c0..26bfa279 100644 --- a/packages/nhost_auth_dart/lib/src/auth_client.dart +++ b/packages/nhost_auth_dart/lib/src/auth_client.dart @@ -329,20 +329,15 @@ class NhostAuthClient implements HasuraAuthClient { required String idToken, String? nonce, }) async { - try { - await _apiClient.post( - '/link/idtoken', - jsonBody: { - 'provider': provider, - 'idToken': idToken, - if (nonce != null) 'nonce': nonce, - }, - headers: _session.authenticationHeaders, - ); - } on NhostException catch (e) { - throw AuthServiceException( - 'Failed to link account with provider $provider'); - } + await _apiClient.post( + '/link/idtoken', + jsonBody: { + 'provider': provider, + 'idToken': idToken, + if (nonce != null) 'nonce': nonce, + }, + headers: _session.authenticationHeaders, + ); } /// Signs in a user with a magic link.