MCPcopy Index your code
hub / github.com/CSFrequency/react-firebase-hooks / useSignInWithGithub

Function useSignInWithGithub

auth/useSignInWithPopup.ts:38–53  ·  view source on GitHub ↗
(auth: Auth)

Source from the content-addressed store, hash-verified

36};
37
38export const useSignInWithGithub = (auth: Auth): SignInWithPopupHook => {
39 const createGithubAuthProvider = useCallback(
40 (scopes?: string[], customOAuthParameters?: CustomParameters) => {
41 const provider = new GithubAuthProvider();
42 if (scopes) {
43 scopes.forEach((scope) => provider.addScope(scope));
44 }
45 if (customOAuthParameters) {
46 provider.setCustomParameters(customOAuthParameters);
47 }
48 return provider;
49 },
50 []
51 );
52 return useSignInWithPopup(auth, createGithubAuthProvider);
53};
54
55export const useSignInWithGoogle = (auth: Auth): SignInWithPopupHook => {
56 const createGoogleAuthProvider = useCallback(

Callers

nothing calls this directly

Calls 1

useSignInWithPopupFunction · 0.85

Tested by

no test coverage detected