loginByApple static method
login by apple auth code
Implementation
static Future<AuthResult> loginByApple(String code) async {
var body = jsonEncode({'code': code});
final Result result = await post(
'/connection/social/apple/' +
Authing.sUserPoolId +
'/callback?app_id=' +
Authing.sAppId,
body);
AuthResult authResult = AuthResult(result);
authResult.user = await createUser(result);
return authResult;
}