Skip to content

Commit

Permalink
Facebook HTTPs in development. facebook/create-react-app#6126
Browse files Browse the repository at this point in the history
  • Loading branch information
yongish committed Dec 29, 2019
1 parent 3f52ca4 commit 56a3201
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

*.pem
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"prestart": "cp -f ./localhost.pem ./node_modules/webpack-dev-server/ssl || :"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
6 changes: 5 additions & 1 deletion src/components/SocialLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export default function SocialLogin() {
>
<FacebookLogin
appId="1500181530138959"
callback={response => dispatch(cognitoFB(response, history, term))}
fields="first_name,last_name,email"
callback={response => {
console.log(response);
dispatch(cognitoFB(response, history, term));
}}
render={renderProps => (
<button
className="loginBtn loginBtn--facebook"
Expand Down

0 comments on commit 56a3201

Please sign in to comment.