public async Task <ActionResult <RequestResponse> > VerifyEmail() { try { AuthenticationHeaderValue authHeader; AuthenticationHeaderValue.TryParse(Request.Headers["Authorization"], out authHeader); if (authHeader is null) { return(NotFound(RequestResponse.NotFound("Invalid request."))); } await firebaseAuthService.VerifyEmail(authHeader.Parameter); return(Ok(RequestResponse.Success())); } catch (Exception) { return(BadRequest(RequestResponse.BadRequest("Something went wrong trying to send verification email."))); } }