()
| 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( |
nothing calls this directly
no outgoing calls
no test coverage detected