0.2.0 • Published 5 years ago

authllizer-google-oauth2 v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Authllizer Google OAuth2 Provider

Source Code Version MIT License Bundle Size TypeScript

Install

$ npm install --save authllizer-google-oauth2
# and install peer dependencies 
$ npm install --save @authllizer/core

Use

import { Authllizer, IAuthllizerOptions } from '@authllizer/core';
import GoogleOAuth2, { IGoogleOAuth2Options } from 'authllizer-google-oauth2';

let authllizer: Authllizer = new Authllizer({
    providers: {
        google: GoogleOAuth2.extend({
            clientId: '***',
            // ...
        } as IGoogleOAuth2Options),
        // ...
    },
    // ...
} as IAuthllizerOptions);

License

Copyright © 2017 Yisrael Eliav, Licensed under the MIT license.