@types/passport-beam
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Installation

npm install --save @types/passport-beam

Summary

This package contains type definitions for passport-beam (https://github.com/alfw/passport-beam).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-beam.

index.d.ts

/// <reference types="passport"/>
/// <reference types="express"/>

import * as express from "express";
import * as passport from "passport";

export class Strategy extends passport.Strategy {
    constructor(
        options: Strategy.IStrategyOption,
        verify: (
            accessToken: string,
            refreshToken: string,
            profile: Strategy.Profile,
            done: (error: any, user?: any) => void,
        ) => void,
    );
    name: string;
    authenticate(req: express.Request, options?: Object): void;
}

export namespace Strategy {
    interface IStrategyOption {
        clientID: string;
        clientSecret: string;
        callbackURL: string;
    }

    interface Profile extends passport.Profile {
        profileUrl: string;
        id: any;
        username: string;
        provider: string;
        email: string;
        _raw: any;
        _json: any;
    }
}

Additional Details

Credits

These definitions were written by AtlasDev.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/passport-beam

Weekly Downloads

3

Version

1.0.9

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types