Ejemplo n.º 1
0
        public async Task <ActionResult <AuthenticateUserResult> > AuthenticateGoogle([FromBody] AuthenticateUserWithGoogleRequest model)
        {
            var result = await authenticateService.AuthenticateGoogleToken(model);

            if (result.IsSuccessful)
            {
                return(Ok(result));
            }
            else
            {
                return(BadRequest(result.Error));
            }
        }