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

Function signInGoogle

src/features/auth/components/register-form.tsx:66–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 };
65
66 const signInGoogle = async () => {
67 await authClient.signIn.social({
68 provider: "google",
69 }, {
70 onSuccess: () => {
71 router.push("/");
72 },
73 onError: () => {
74 toast.error("Something went wrong");
75 },
76 });
77 };
78
79 const onSubmit = async (values: RegisterFormValues) => {
80 await authClient.signUp.email(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected