once the user logs in with his microsoft account in the web application, a redirection is made to a method which aims to extract the user code and exchange it for the token, finally when I try to use the token with the api , when making the http request through the get method, it fails, here I show the code, it was make on C#:
var EmailRequest = "https://graph.microsoft.com/v1.0/me/?$select=displayName";
var Request = WebRequest.Create(EmailRequest);
Request.Headers.Add("Authorization", "Bearer " + accessToken );
var Response = (HttpWebResponse)Request.GetResponse();
