added: google oauth for manual registration was made

Signed-off-by: rgrgogu <obsequio.rus@gmail.com>
This commit is contained in:
rgrgogu
2026-07-16 02:19:08 +08:00
parent 9b1805da8f
commit 538507fa27
2 changed files with 19 additions and 2 deletions
+11
View File
@@ -240,6 +240,17 @@ const Client = () => {
window.history.replaceState({}, '');
}, []);
// Show a one-time notice the first time a manually-registered account
// gets folded into a Google sign-in with the same email.
useEffect(() => {
if (!navState?.justLinkedGoogle) return;
toast('Your Google account is now affiliated with this account.', {
description: 'You can sign in with Google going forward.',
duration: 6000,
});
window.history.replaceState({}, '');
}, []);
useEffect(() => {
getCourses();
getUnits();