Waterlock Google Auth
waterlock-google-auth is a module for waterlock providing a google authentication method for users.
Usage
npm install waterlock-google-auth
set the following option in your waterlock.json
config file
"authMethod":[
{
name: 'waterlock-google-auth',
clientId: 'CLIENT_ID',
clientSecret: 'CLIENT_SECRET'
}
]
Direct your user to /auth/login
will initiate the oauth request. The callback uri is /auth/oauth2
if successfuly authenticated a user record will be created if a user is not found one will be created using the waterlines findOrCreate
method