feat: pending sync reset flag (#19861)

This commit is contained in:
Jason Rasmussen 2025-07-11 09:38:02 -04:00 committed by GitHub
parent 34f0f6c813
commit 4b3a4725c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 499 additions and 27 deletions

View file

@ -58,7 +58,11 @@ const authFactory = ({
}
if (session) {
auth.session = { id: session.id, hasElevatedPermission: false };
auth.session = {
id: session.id,
isPendingSyncReset: false,
hasElevatedPermission: false,
};
}
if (sharedLink) {
@ -131,6 +135,7 @@ const sessionFactory = (session: Partial<Session> = {}) => ({
expiresAt: null,
userId: newUuid(),
pinExpiresAt: newDate(),
isPendingSyncReset: false,
...session,
});