Function useAppCheckToken

  • Returns and updates the current App Check token

    Parameters

    • appCheck: AppCheck

      Firebase App Check instance

    Returns UseAppCheckToken

    App Check token, loading state, and error

    • value: App Check token; undefined if token is currently being fetched, or an error occurred
    • loading: true while fetching the token; false if the token was fetched successfully or an error occurred
    • error: undefined if no error occurred