Skip to content

Commit

Permalink
fix dart linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
onehassan committed Nov 14, 2024
1 parent e09dccc commit 9a435d7
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions packages/nhost_auth_dart/lib/src/auth_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,20 +329,15 @@ class NhostAuthClient implements HasuraAuthClient {
required String idToken,
String? nonce,
}) async {
try {
await _apiClient.post<String>(
'/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<String>(
'/link/idtoken',
jsonBody: {
'provider': provider,
'idToken': idToken,
if (nonce != null) 'nonce': nonce,
},
headers: _session.authenticationHeaders,
);
}

/// Signs in a user with a magic link.
Expand Down

0 comments on commit 9a435d7

Please sign in to comment.