(onSuccess: () => void, onError: (error: any) => void)
| 88 | */ |
| 89 | |
| 90 | const logout = async (onSuccess: () => void, onError: (error: any) => void) => { |
| 91 | await signOut(auth) |
| 92 | .then(() => { |
| 93 | onSuccess(); |
| 94 | }) |
| 95 | .catch((error) => { |
| 96 | onError(error); |
| 97 | }); |
| 98 | }; |
| 99 | |
| 100 | /** |
| 101 | * Signup a new user with Google using Firebase Authentication |
nothing calls this directly
no outgoing calls
no test coverage detected