We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95efb83 commit 25d77efCopy full SHA for 25d77ef
packages/toolshed/routes/integrations/google-oauth/google-oauth.utils.ts
@@ -303,12 +303,14 @@ export async function clearAuthData(authCellDocLink: string) {
303
};
304
305
// Set the empty data to the auth cell
306
- await authCell.runtime.editWithRetry((tx) => {
+ const error = await authCell.runtime.editWithRetry((tx) => {
307
authCell.withTx(tx).set(emptyAuthData);
308
});
309
+ if (error) throw error;
310
311
return emptyAuthData;
312
} catch (error) {
313
+ logger.error("Error clearing auth data", error);
314
throw new Error(`Error clearing auth data: ${error}`);
315
}
316
0 commit comments