react-query-firebase / web/auth / useAppleAuthProviderCredential
Function: useAppleAuthProviderCredential()
ts
function useAppleAuthProviderCredential(): (credential) => AuthCredential;
Defined in: web/auth/useAppleAuthProviderCredential.ts:27
A custom hook that returns an auth credential for facebook.
Returns
ts
(credential): AuthCredential;
Parameters
credential
Credential
Returns
AuthCredential
Example
jsx
export const MyComponent = () => {
const getCredential = useAppleAuthProviderCredential();
// ...
getCredential({token, nonce: ''})
};