We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77581aa commit 31e39daCopy full SHA for 31e39da
src/components/formElements/Buttons.jsx
@@ -1,13 +1,14 @@
1
import { ExclamationCircleIcon } from '@heroicons/react/20/solid';
2
import { useFirebaseAuth } from '@ugrc/utah-design-system';
3
import { clsx } from 'clsx';
4
+import { signInWithRedirect } from 'firebase/auth';
5
import PropTypes from 'prop-types';
6
7
export const LogInButton = () => {
- const { login } = useFirebaseAuth();
8
+ const { auth, provider } = useFirebaseAuth();
9
10
const handleClick = () => {
- login();
11
+ signInWithRedirect(auth, provider);
12
};
13
14
return (
0 commit comments