Authentication
The @react-query-firebase/auth
package provides hooks subscribing to a authentication state and triggering
authentication requests.
Usage
To use the hooks, export your Auth
instance from your codebase, e.g:
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
const firebase = initializeApp({
...
});
export const auth = getAuth(firebase);