Tuesday, 3 September 2019

Nodejs graph call

I am not getting the logged in user details in the console but if i verify the token in jwt.io then i am getting the details.​//my codefunction Testapi (accessToken) {request.get({url:"https://graph.microsoft.com/v1.0/me",headers: {"Authorization": "Bearer "+accessToken}}, function(err, response, body) {console.log(body);});}​//error{"error": {"code": "InvalidAuthenticationToken","message": "Access token validation failure. Invalid audience.","innerError": {"request-id": "691b3d64-f8b0-46ef-9cca-5d25e9f94e3d","date": "2019-09-03T07:26:10"}}}

Submitted September 03, 2019 at 08:31AM by koushikgoramane

No comments:

Post a Comment