@salte-auth/google
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

A Salte Auth provider for authenticating with Google!

DocsDemo

NPM Version NPM Downloads CI Build 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: '701257675570-eno2h1b57kranmaoj4245hbk5pignduh.apps.googleusercontent.com',
      responseType: 'code',
    })
  ],

  handlers: [
    new Redirect({
      default: true
    })
  ]
});

auth.login('google');

Dependents (0)

Package Sidebar

Install

npm i @salte-auth/google

Weekly Downloads

15

Version

3.2.0

License

MIT

Unpacked Size

12.8 kB

Total Files

20

Last publish

Collaborators

  • cecilia-sanare
  • davewoodward
  • salte-bot