mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
added: google oauth for manual registration was made
Signed-off-by: rgrgogu <obsequio.rus@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user