Skip to content

react-query-firebase / react-native/auth / useAppleAuthProviderCredential

Function: useAppleAuthProviderCredential()

ts
function useAppleAuthProviderCredential(): (credential) => AuthCredential;

Defined in: react-native/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: ''})
};

Released under the MIT License.