示例#1
0
        public async Task <IActionResult> GetAuth()
        {
            ClaimsPrincipal userClaims = HttpContext.User;

            string search_email = userClaims.FindFirstValue(EmailClaimType);

            try
            {
                var type = await _repo.GetAuthTypeAsync(search_email);

                return(Ok(type));
            }
            catch (ArgumentException e)
            {
                _logger.LogError(e.Message);
                return(NotFound());
            }
        }