Skip to content

Commit

Permalink
use valid 32-bit int for timeout initializer value
Browse files Browse the repository at this point in the history
  • Loading branch information
jbraswell committed Jul 3, 2024
1 parent 30c4c6b commit 1f05afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/js/stores/apiCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class ApiCredentialsStore {

constructor() {
this.store = writable(null);
this.refreshTokenTimeout = setTimeout(() => {}, Number.MAX_SAFE_INTEGER);
this.refreshTokenTimeout = setTimeout(() => {}, 2147483647);
const raw = localStorage.getItem(ACCESS_TOKEN_STORAGE_KEY);
if (raw) {
this.set(JSON.parse(raw) as Token);
Expand Down

0 comments on commit 1f05afd

Please sign in to comment.