Closed q-benwillis closed 2 months ago
I'm developing a new Fabric workload and am trying to acquire a new access token using the Auth Client API.
This is my code:
const token = await this.workloadClient.client.auth.acquireAccessToken(params).catch(err => { console.error("Failed to retrieve token", err); });
where params is:
params
{ "additionalScopesToConsent": [ ".default" ], "claimsForConditionalAccessPolicy": null }
Unfortunately this is failing and all I'm seeing in the logs is Failed to retrieve token {error: 0}. Is there any way I can get more information on why this is failing?
Failed to retrieve token {error: 0}
solved offline, it is transient: solved by adding the url parameter clientSideAuth=1 and then it stopped failing even without the parameter.
I'm developing a new Fabric workload and am trying to acquire a new access token using the Auth Client API.
This is my code:
where
params
is:Unfortunately this is failing and all I'm seeing in the logs is
Failed to retrieve token {error: 0}
. Is there any way I can get more information on why this is failing?