@boilerz/super-server-auth-google

Google oauth for super-server

Usage no npm install needed!

<script type="module">
  import boilerzSuperServerAuthGoogle from 'https://cdn.skypack.dev/@boilerz/super-server-auth-google';
</script>

README

@boilerz/super-server-auth-google

GitHub package.json version GH CI Action codecov

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