(event: FormEvent)
| 42 | }, []); |
| 43 | |
| 44 | const signIn = async (event: FormEvent) => { |
| 45 | event.preventDefault(); |
| 46 | setBusy(true); |
| 47 | setError(null); |
| 48 | const result = await authClient.signIn.email({ email, password }); |
| 49 | if (result.error) { |
| 50 | setBusy(false); |
| 51 | setError(result.error.message ?? "Sign in failed"); |
| 52 | return; |
| 53 | } |
| 54 | window.location.href = postLogin; |
| 55 | }; |
| 56 | |
| 57 | const signInWithSso = async (providerId: string) => { |
| 58 | setBusy(true); |
nothing calls this directly
no outgoing calls
no test coverage detected