Commit 0355bc53 authored by Robert Knight's avatar Robert Knight

Improve the wording of a comment

A call to `refreshAccessToken` is not the only way that the token can
change while waiting for a response to the `POST /api/token` endpoint.
parent 2e3cc6c9
......@@ -238,8 +238,8 @@ export class AuthService extends TinyEmitter {
// Step 3: Re-fetch the token if it is no longer valid
if (origToken !== tokenInfoPromise) {
// A token refresh has been initiated via a call to `refreshAccessToken`
// below since `getAccessToken()` was called.
// The token source was changed while waiting for the token to be fetched.
// This can happen for various reasons. We'll just need to try again.
return getAccessToken();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment