Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): clear Google Drive token cache on connect and disconnect
Richie McIlroy0ccddbebd76c
diff --git a/apps/web/app/api/desktop/[...route]/storage.ts b/apps/web/app/api/desktop/[...route]/storage.tsindex 0c1d7a718..6bfcc5e7f 100644--- a/apps/web/app/api/desktop/[...route]/storage.ts+++ b/apps/web/app/api/desktop/[...route]/storage.ts@@ -244,7 +244,14 @@ protectedApp.delete("/google-drive/disconnect", async (c) => {const user = c.get("user");await db().update(storageIntegrations)- .set({ active: false, status: "disconnected" })+ .set({+ active: false,+ status: "disconnected",+ googleDriveAccessToken: null,+ googleDriveAccessTokenExpiresAt: null,+ googleDriveTokenRefreshLeaseId: null,+ googleDriveTokenRefreshLeaseExpiresAt: null,+ }).where(and(eq(storageIntegrations.ownerId, user.id),@@ -357,6 +364,10 @@ app.get("/google-drive/callback", async (c) => {status: "active",active: true,encryptedConfig,+ googleDriveAccessToken: null,+ googleDriveAccessTokenExpiresAt: null,+ googleDriveTokenRefreshLeaseId: null,+ googleDriveTokenRefreshLeaseExpiresAt: null,}).where(eq(storageIntegrations.id, reusable.id));return;