Better supabase error message (#682)

This commit is contained in:
Will Chen authored and GitHub committed 2025-07-21 16:32:39 -07:00
1 parent 62de7377c1
commit ade5271e22
1 file changed
+3 -1
@@ -57,7 +57,9 @@ export async function refreshSupabaseToken(): Promise<void> {
);
if (!response.ok) {
throw new Error(`Token refresh failed: ${response.statusText}`);
throw new Error(
`Supabase token refresh failed. Try going to Settings to disconnect Supabase and then reconnect to Supabase. Error status: ${response.statusText}`,
);
}
const {