chore: improved lastused login method (#16511)
This commit is contained in:
1 parent
fced9a6355
commit
bebe1dd7b4
2 files changed
+4
-8
No files matched your search
@@ -256,12 +256,10 @@ PageProps & WithNonceProps<{}>) {
|
||||
CustomStartIcon={<GoogleIcon />}
|
||||
onClick={async (e) => {
|
||||
e.preventDefault();
|
||||
const res = await signIn("google", {
|
||||
setLastUsed("google");
|
||||
await signIn("google", {
|
||||
callbackUrl,
|
||||
});
|
||||
if (res && !res.error) {
|
||||
setLastUsed("google");
|
||||
}
|
||||
}}>
|
||||
<span>{t("signin_with_google")}</span>
|
||||
{lastUsed === "google" && <LastUsed />}
|
||||
|
||||
Reference in new issue
Block a user