Overview
useAppMetadata hook is used to fetch and manage the application metadata. It leverages the react-query library to handle the asynchronous operation and provides error handling and success callbacks.Use useAppMetadata to fetch identity providers list for OAuth authentication.
Parameters
callback function that is called when the fetching process is successful. It receives the AppMetadata object as an argument.
callback function that is called when an error occurs during the fetching process.
Returns
application metadata object if the fetching process is successful.
AppMetadata type
IdentityProvider type
boolean indicating whether the fetching process is currently in progress.
boolean indicating whether an error occurred during the fetching process.
error object if an error occurred during the fetching process.