reversim / reversim-summit-2020

2 stars 2 forks source link

Fix oauth login with google #23

Closed rantav closed 5 years ago

rantav commented 5 years ago

This PR updates the passport google library and sets up proper user login. For this to work @yarivShamash you have to add to your .private/ENV_VARS file the following lines:

export GOOGLE_CLIENTID=946006617987-f6aj95hvr7s9vpfqisals33563eurd1k.apps.googleusercontent.com
export GOOGLE_SECRET=gZC9plQoCukb1jF5yF6i5bs_

(if you don't yet have this file yet, then create the directory .private in your project dir and create a new text file ENV_VARS)

This file contains local development data, such as keys to authenticate to google and other things. These keys are only valid for local development. For the actual website I'll create another set of keys later.

Note that after successful login there's a react error. But that's your arena ;-)