signInWithProvider method
Sign in with Apple / Google (POST /auth/oauth/{provider} with the provider's id token).
Implementation
Future<CloudAccount> signInWithProvider(
String provider,
String idToken, {
String? nonce,
String? displayName,
}) async => _adopt(
await _api.json(
CloudOperations.signInWithProvider,
CloudSession.fromJson,
params: {'provider': provider},
body: {
'idToken': idToken,
'nonce': ?nonce,
'displayName': ?displayName,
'client': _client,
},
authenticated: false,
),
);