I am using Aadtokenprovider in my spfx bot extension for generating token. After token get expired bot show error 'Unable to connect'. How do I refresh token and pass it .
Asked
Active
Viewed 575 times
0
-
Can you please give us more details about your Aadtokenprovider – Hari Krishna May 29 '20 at 18:13
-
this.context.aadTokenProviderFactory .getTokenProvider() .then((tokenProvider: AadTokenProvider): Promise
=> { return tokenProvider.getToken('my client id '); }).then((accessToken: string): void => { console.log(accessToken); }); – Jaya Raut Jun 01 '20 at 10:05 -
after expiration of token token provider get token is not resolving at all on calling again. tokenProvider.getToken('api://my client id'); "Promise {
}" – Jaya Raut Jun 03 '20 at 04:23 -
This seems to be microsoft bug. https://github.com/SharePoint/sp-dev-docs/issues/4892 – Jaya Raut Jun 03 '20 at 05:41
1 Answers
0
There is an open issue with Microsoft for this problem. github.com/SharePoint/sp-dev-docs/issues/4892

Jaya Raut
- 21
- 6