make google auth work without ejecting from create-react-app

This commit is contained in:
2018-07-13 03:04:04 +03:00
parent 3911e8f5d1
commit 5732f12f7b
4 changed files with 704 additions and 601 deletions

1290
react/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -32,7 +32,8 @@
}
},
"devDependencies": {
"eslint-config-airbnb": "^16.1.0",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jest": "^21.17.0",

View File

@@ -68,7 +68,7 @@ class LoginForm extends React.Component {
id="googlebutton"
variant="raised"
onClick={() => {
window.location = '/api/users/login/google/';
window.location = '/__/users/login/google/';
}}
>
Google