I believe for the example to work the firebase app in the config needs to be updated to include references from an Apple developer account.
yarn run v1.22.17
$ jest --coverage
PASS src/test.tsx
withFirebaseAuth
✓ should be a function (2 ms)
✓ should render WrappedComponent (18 ms)
✓ should start with loading as false (24 ms)
✓ should setup onAuthStateChange listener when mounting the component (2 ms)
✓ should call onAuthStateChange unsubscriber when unmounting the component (3 ms)
✓ should update user in state when currentAuthStateObserver is invoked (2 ms)
✓ should call signInAnonymously when prop is invoked (6 ms)
✓ should call signOut when prop is invoked (2 ms)
✓ should call signInWithEmailAndPassword when prop is invoked (3 ms)
✓ should call signInWithPopup with googleProvider instance when signInWithGoogle prop is invoked (3 ms)
✓ should call signInWithPopup with twitterProvider instance when signInWithTwitter prop is invoked (3 ms)
✓ should call signInWithPopup with facebookProvider instance when signInWithFacebook prop is invoked (3 ms)
✓ should call signInWithPopup with appleProvider instance when signInWithApple prop is invoked (2 ms)
✓ should call signInWithPopup with githubProvider instance when signInWithGithub prop is invoked (2 ms)
✓ should call createUserWithEmailAndPassword when prop is invoked (5 ms)
✓ should call signInWithPhoneNumber when prop is invoked (2 ms)
✓ should set an error when setError is invoked (2 ms)
✓ should set an error when trying to call a login provider without providing its instance (2 ms)
-------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files | 100 | 90.91 | 100 | 100 |
...ForProvider.ts | 100 | 100 | 100 | 100 |
index.tsx | 100 | 90.91 | 100 | 100 | 77
-------------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests: 18 passed, 18 total
Snapshots: 0 total
Time: 2.049 s, estimated 3 s
Ran all test suites.
Done in 2.97s.
Adding option to include signup and login with Apple ID. Doesn't seem to be currently support, but there is the option to use it in the web version
https://firebase.google.com/docs/auth/web/apple
I believe for the example to work the firebase app in the config needs to be updated to include references from an Apple developer account.