You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
When running all the tests for OneNote, the first test frequently fails. This seems to be because of a race condition between the API call and the two calls to complete OAuth authorization - that is, authorization hasn't completed in time for the first API call. Let's see how we can better wait on completed authorization. Perhaps this would be in the LiveAuthClient itself?
Need to think about this a bit more. I think the difference might be that we call loginSilent on each API call, allowing the underlying auth client to decide whether to get from cache or make a network call. In your example you call getSession() which I think would always be static.
The pattern we use is based on the pattern for ADAL recommended by @vibronet - call acquireTokenSilent every time and let the lib decide what to do.
When running all the tests for OneNote, the first test frequently fails. This seems to be because of a race condition between the API call and the two calls to complete OAuth authorization - that is, authorization hasn't completed in time for the first API call. Let's see how we can better wait on completed authorization. Perhaps this would be in the LiveAuthClient itself?
@peternied @ovenado
The text was updated successfully, but these errors were encountered: