We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afb8ef0 commit 944abe4Copy full SHA for 944abe4
1 file changed
lib/storage.ts
@@ -1166,7 +1166,7 @@ function findCompatibleRefreshTokenMatchIndex<T extends AccountLike>(
1166
matchingAccount = account;
1167
continue;
1168
}
1169
- const newest = selectNewestAccount(matchingAccount, account);
+ const newest: T = selectNewestAccount(matchingAccount ?? undefined, account);
1170
if (newest === account) {
1171
matchingIndex = i;
1172
@@ -1939,6 +1939,7 @@ export async function withAccountAndFlaggedStorageTransaction<T>(
1939
return withStorageLock(async () => {
1940
const state = {
1941
snapshot: await loadAccountsInternal(saveAccountsUnlocked),
1942
+ active: true,
1943
};
1944
const current = state.snapshot;
1945
const persist = async (
0 commit comments