| 7 | |
| 8 | const signOut = auth => auth.signOut().then(() => console.log('signed out')); |
| 9 | const signIn = async auth => { |
| 10 | const provider = new GoogleAuthProvider(); |
| 11 | |
| 12 | await signInWithPopup(auth, provider); |
| 13 | } |
| 14 | |
| 15 | export const AuthWrapper = ({ children, fallback }: React.PropsWithChildren<{ fallback: JSX.Element }>): JSX.Element => { |
| 16 | const { status, data: signInCheckResult } = useSigninCheck(); |