[FIX] Login and register via Google OAuth

This commit is contained in:
Danish Ahmed Mirza 2022-01-24 16:25:34 +05:30
parent 2946c4724e
commit ea12d90f74
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class LoginServices extends React.PureComponent<ILoginServicesProps, any> {
const { services, server } = this.props;
const { clientId } = services.google;
const endpoint = 'https://accounts.google.com/o/oauth2/auth';
const redirect_uri = `${server}/_oauth/google?close`;
const redirect_uri = `${server}/_oauth/google`;
const scope = 'email';
const state = this.getOAuthState(LOGIN_STYPE_REDIRECT);
const params = `?client_id=${clientId}&redirect_uri=${redirect_uri}&scope=${scope}&state=${state}&response_type=code`;