public async Task <IActionResult> AppleLogin([FromBody] AppleSignInRequestModel model) { var handler = new JwtSecurityTokenHandler(); var jsonToken = handler.ReadToken(model.Token) as JwtSecurityToken; string email = jsonToken.Claims.Single(x => x.Type == "email").Value; string appleId = jsonToken.Claims.Single(x => x.Type == "sub").Value; return(await MakeActionCallAsync(async() => await _tokenService.AppleLogin(model, email, appleId, GetDeviceToken(), GetLanguage(), GetDeviceId(), UserCurrency))); }