public async Task <IActionResult> Index() { var option = new CookieOptions(); var token = provider.CreateToken(); option.Expires = token.ValidTo; Response.Cookies.Append("Authorization", token.RawData, option); return(View(await _cosmosDbService.GetItemsAsync("SELECT * FROM c WHERE c.isComplete = false"))); }
public IActionResult Maps() { var option = new CookieOptions(); var token = provider.CreateToken(); option.Expires = token.ValidTo; Response.Cookies.Append("Authorization", token.RawData, option); return(View()); }