import { ... } from 'react-firehooks/app-check';
Returns and updates the current App Check token
const [user, loading, error] = useAppCheckToken(auth);
Params:
appCheck
: Firebase App Check instance
Returns:
value
: App Check token;undefined
if the token is currently being fetched, or an error occurredloading
:true
while fetching the token;false
if the token was fetched successfully or an error occurrederror
:undefined
if no error occurred