refac/enh: display oauth error as toast

This commit is contained in:
Timothy Jaeryang Baek committed 2025-09-07 01:48:52 +04:00
1 parent 9368d0ac75
commit 3d6d050ad8
2 files changed
+196 -165

No files matched your search

+6 -1
View File
@@ -162,8 +162,13 @@
localStorage.setItem('redirectPath', redirectPath);
}
}
await oauthCallbackHandler();
const error = $page.url.searchParams.get('error');
if (error) {
toast.error(error);
}
await oauthCallbackHandler();
form = $page.url.searchParams.get('form');
loaded = true;