Closed RobPethick closed 6 years ago
@RobPethick You should not call renewToken directly as it is a private method. You should call acquireToken which internally calls renewToken. Can you explain the need to call the private api directly.
nope - I was unaware this was the wrong method - I have switched to acquireToken and it works fine I couldn't find docs to explain what the public methods were - am I missing them somewhere?
@RobPethick - Sorry that our docs are not very clear. We are working towards updating it. We will do our best to avoid such confusions in future.
NP - it is working great for me now
I am calling renewToken to get my access_token and then using handleWindowCallback to
From line 1340
The issue is that we need requestInfo.requestType to be RENEW_TOKEN but it isn't set to RENEW_TOKEN in the _renewToken method (it does set it in the acquireToken method).
I think we just need to set the requestType in the renewToken