Skip to content

Commit

Permalink
Quick hack to reauth (I think) when we fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonty committed Sep 15, 2023
1 parent d1f3554 commit 9eab6ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@
} else if (err.status == 403) {
// TODO: we could try reauthing here?
console.log(`Spreadsheet returned 403, possibly session expired`);
} else if (err.status == 401) {
console.log(`Spreadsheet returned 401, session def expired, trying to reauth`);
await gc.authGoogle();
}
}
}
Expand Down

0 comments on commit 9eab6ec

Please sign in to comment.