@boilerz/super-server-auth-google
Google oauth for super-server
Install
npx install-peerdeps @boilerz/super-server-auth-google
Usage
Require super-server-mongo
and super-server-auth-core
.
Full example here
Env vars
Name | Default | Description |
---|---|---|
SERVER_HOST | http://localhost:3000 |
Server host |
GOOGLE_OAUTH_SCOPE | https://www.googleapis.com/auth/userinfo.profile,https://www.googleapis.com/auth/userinfo.email |
Oauth scope |
GOOGLE_CLIENT_ID | Client ID. | |
GOOGLE_CLIENT_SECRET | Client secret. | |
GOOGLE_FAILURE_REDIRECT | /login |
Google failure redirect. |
GOOGLE_LINK_PROVIDER_CALLBACK_URL | ${SERVER_HOST}/auth/connect |
Callback used for account linking. |
Release
yarn version
yarn build
yarn publish dist --access public