Nefarious Plastic Mannequins
Miss any of our Open RFC calls?Watch the recordings here! »

@salte-auth/google

3.0.2 • Public • Published

A Salte Auth provider for authenticating with Google!

DocsDemo

NPM Version NPM Downloads Travis Coveralls

semantic-release

Install

$ npm install @salte-auth/google

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Google } from '@salte-auth/google';
import { Redirect } from '@salte-auth/redirect';
 
/* 
 * Feel free to try out Salte Auth with this configuration!
 * 
 * It should work with the following domains:
 * - localhost:8081
 */
const auth = new SalteAuth({
  providers: [
    new Google({
      clientID: '680805279527-a1fpj4j0q31e58qstvih9p2rljsdadp9.apps.googleusercontent.com',
      responseType: 'code',
    })
  ],
 
  handlers: [
    new Redirect({
      default: true
    })
  ]
});
 
auth.login('google');

Install

npm i @salte-auth/google

DownloadsWeekly Downloads

0

Version

3.0.2

License

MIT

Unpacked Size

44 kB

Total Files

28

Last publish

Collaborators

  • avatar
  • avatar
  • avatar