fix: Using Parse Server option extendSessionOnUse does not correctly clear memory and functions as a debounce instead of a throttle (#8683)

This commit is contained in:
Daniel
2025-03-06 11:34:52 +11:00
committed by GitHub
parent 3cb3c5f7c6
commit 6258a6a112
2 changed files with 40 additions and 32 deletions

View File

@@ -106,6 +106,8 @@ describe('Auth', () => {
updatedAt: updatedAt.toISOString(),
}
);
Parse.Server.cacheController.clear();
await new Promise(resolve => setTimeout(resolve, 1000));
await session.fetch();
await new Promise(resolve => setTimeout(resolve, 1000));
await session.fetch();