Skip to content

Commit

Permalink
Use Credential
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Jan 21, 2025
1 parent 7f116fa commit 050ded7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/src/pages/LoginPage/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ const Login = () => {
};

const verifyLogin = async (response: CredentialResponse) => {
if (!response.clientId) {
throw new Error('Failed to get client id');
console.log(response);
if (!response.credential) {
throw new Error('Failed to get credentials');
}
const authedUser = await auth.signin(response.clientId);
const authedUser = await auth.signin(response.credential);
if (authedUser.defaultTheme && authedUser.defaultTheme !== theme.activeTheme.toUpperCase()) {
theme.toggleTheme();
}
Expand Down

0 comments on commit 050ded7

Please sign in to comment.