You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

authllizer-electron-dialog

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authllizer-electron-dialog

Authllizer Electron Dialog

0.2.0
latest
Source
npm
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

Authllizer Electron Dialog

Source Code Version MIT License Bundle Size TypeScript

Install

$ npm install --save authllizer-electron-dialog
# and install peer dependencies 
$ npm install --save @authllizer/core

Use

import { Authllizer, IAuthllizerOptions } from '@authllizer/core';
import ElectronDialog, { IElectronDialogOptions } from 'authllizer-electron-dialog';

let authllizer: Authllizer = new Authllizer({
    dialog: ElectronDialog.extend({
        // ...
    } as IElectronDialogOptions),
    // ...
} as IAuthllizerOptions);

Support both electron and browser

import { Authllizer, IAuthllizerOptions, BrowserDialog } from '@authllizer/core';
import ElectronDialog, { isElectron } from 'authllizer-electron-dialog';

let authllizer: Authllizer = new Authllizer({
    dialog: isElectron() ? ElectronDialog : BrowserDialog,
    // ...
} as IAuthllizerOptions);

You must set the provider 'redirectUri' to the address you set as redirect uri in the provider settings

import { Authllizer, OAuth1Provider, OAuth2Provider, IAuthllizerOptions } from '@authllizer/core';

let authllizer: Authllizer = new Authllizer({
    providers:{
        some1: OAuth1Provider.extend({
            redirectUri: '***',
            // ...
        }),
        some2: OAuth2Provider.extend({
            redirectUri: '***',
            // ...
        }),
        // ...
    }
    // ...
} as IAuthllizerOptions);

License

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

Keywords

authllizer

FAQs

Package last updated on 03 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts