Skip to content

react-query-firebase / react-native/auth / useAuthProvider

Function: useAuthProvider()

ts
function useAuthProvider(provider): any;

Defined in: react-native/auth/useAuthProvider.ts:28

A custom hook that returns an auth provider by id.

Parameters

provider

AuthProvider

alas of a provider

Returns

any

Example

jsx
export const MyComponent = () => {
 const authProvider = useAuthProvider('email');
};

Released under the MIT License.