OfficeDev / office-js-helpers

[ARCHIVED] A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs
MIT License
126 stars 56 forks source link

Cannot register new endpoints #96

Open elegault opened 6 years ago

elegault commented 6 years ago

I've been doing some testing with various endpoints, and it seems the first provider I use for each of Authenticator.endpoints.registerMicrosoftAuth and registerAzureADAuth are "stuck" in storage. Every time I try to register and use a provider with a different client ID, the login is failing and referring to IDs from the first registration attempts. I see the old provider client IDs in storage, but I don't know how to clear them (if it's possible); I've tried Authenticator.endpoints.clear() and they still remain.

So how can I clear the storage and use new providers?

WrathOfZombies commented 6 years ago

Are you on the latest version? https://unpkg.com/@microsoft/office-js-helpers@1.0.2/dist/office.helpers.js

FYI @Zlatkovsky

elegault commented 6 years ago

Yes I am. This may not be a bug and perhaps just a symptom of me not understanding how the storage mechanism works. In fact it would be nice if anything about Storage Helpers (and the rest) is documented, as only Authentication has guidance at the moment