Skip to content

Commit

Permalink
Merge pull request #174 from Mahima710/auth_fix
Browse files Browse the repository at this point in the history
fixed auth
  • Loading branch information
aniketbiswas21 authored Jan 14, 2022
2 parents 0941aed + ea03e4b commit 223b5f8
Show file tree
Hide file tree
Showing 3 changed files with 2,889 additions and 3,611 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_OAUTH_CLIENT_ID='ENTER CLIENT ID'
REACT_APP_OAUTH_CLIENT_ID='996651917612-c3olipfl8in8e4josk4krmet86mvcisl.apps.googleusercontent.com'
REACT_APP_BACKEND_ENDPOINT='https://thaparolx.dsctiet.tech'
3 changes: 2 additions & 1 deletion src/components/Login/GoogleLoginButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const GoogleLoginButton = ({
console.log(response);
setLoading();

loginUser(response.wc.access_token);
loginUser(response.accessToken);
};
const responseGoogleFail = (response) => {
console.log(response);
Expand Down Expand Up @@ -48,6 +48,7 @@ const GoogleLoginButton = ({
onFailure={responseGoogleFail}
cookiePolicy={'single_host_origin'}
hostedDomain={'thapar.edu'}
isSignedIn={true}
/>
</Fragment>
);
Expand Down
Loading

0 comments on commit 223b5f8

Please sign in to comment.