MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / signInGoogle

Function signInGoogle

src/features/auth/components/login-form.tsx:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 };
59
60 const signInGoogle = async () => {
61 await authClient.signIn.social({
62 provider: "google",
63 }, {
64 onSuccess: () => {
65 router.push("/");
66 },
67 onError: () => {
68 toast.error("Something went wrong");
69 },
70 });
71 };
72
73 const onSubmit = async (values: LoginFormValues) => {
74 await authClient.signIn.email({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected