Skip to content

Commit 9187e31

Browse files
committed
Address PR comments
1 parent a97b231 commit 9187e31

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/app-check/src/internal-api.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ describe('internal api', () => {
120120
});
121121

122122
it('resolves with a dummy token and an error if failed to get a token', async () => {
123+
// getToken() errors are logged to console. Hide this during test.
123124
const errorStub = stub(console, 'error');
124125
activate(app, FAKE_SITE_KEY, true);
125126

packages/app-check/src/internal-api.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ export function addTokenListener(
202202

203203
// Create the refresher but don't start it if `isTokenAutoRefreshEnabled`
204204
// is not true.
205-
if (
206-
!newState.tokenRefresher.isRunning() &&
207-
state.isTokenAutoRefreshEnabled === true
208-
) {
205+
if (!newState.tokenRefresher.isRunning() && state.isTokenAutoRefreshEnabled) {
209206
newState.tokenRefresher.start();
210207
}
211208

0 commit comments

Comments
 (0)