appleSSO method
Implementation
Future<Map<String, dynamic>> appleSSO(String token, String backend,
String clientId, List<String> scopes, Map body) async {
try {
final credential = await SignInWithApple.getAppleIDCredential(
scopes: [
AppleIDAuthorizationScopes.email,
AppleIDAuthorizationScopes.fullName,
],
);
return {"token": credential.identityToken, "success": token};
} catch (_) {}
return {"token": "", "success": false};
}