Skip to content

Commit 25d77ef

Browse files
committed
also here
1 parent 95efb83 commit 25d77ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/toolshed/routes/integrations/google-oauth/google-oauth.utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,14 @@ export async function clearAuthData(authCellDocLink: string) {
303303
};
304304

305305
// Set the empty data to the auth cell
306-
await authCell.runtime.editWithRetry((tx) => {
306+
const error = await authCell.runtime.editWithRetry((tx) => {
307307
authCell.withTx(tx).set(emptyAuthData);
308308
});
309+
if (error) throw error;
309310

310311
return emptyAuthData;
311312
} catch (error) {
313+
logger.error("Error clearing auth data", error);
312314
throw new Error(`Error clearing auth data: ${error}`);
313315
}
314316
}

0 commit comments

Comments
 (0)