Closed ayushsood closed 6 years ago
See:
If you set up an OAuth endpoint via:
const authenticator = new Authenticator(); authenticator.endpoints.add(OAUTH_CLIENT.clientName, { clientId: OAUTH_CLIENT.clientId, baseUrl: OAUTH_CLIENT.baseUrl, authorizeUrl: OAUTH_CLIENT.authorizeUrl, responseType: 'token' });
And try to print out a token (should be null), via:
null
console.log(authenticator.tokens.get(OAUTH_CLIENT.clientName));
You get the endpoint configuration back.
Suggested fix: Change line 36 in token.manager.ts to super('OAuth2Tokens', storageType);
token.manager.ts
super('OAuth2Tokens', storageType);
There was a bug in the container name. This has been addressed recently. I'll push a new update to the library.
Thanks
Fixed in https://unpkg.com/@microsoft/office-js-helpers@1.0.1/dist/office.helpers.js
See:
If you set up an OAuth endpoint via:
And try to print out a token (should be
null
), via:You get the endpoint configuration back.
Suggested fix: Change line 36 in
token.manager.ts
tosuper('OAuth2Tokens', storageType);