Dynamic module passport

Index

Interfaces

Functions

Functions

authenticate(strategy: string, options: Object, callback?: Handler): Handler

Parameters

  • strategy: string
  • options: Object
  • callback?: Handler optional

Returns

Handler

authenticate(strategy: string, callback2: (err: any, user: any, info: any) => void): Handler

Parameters

  • strategy: string
  • callback2: (err: any, user: any, info: any) => void

Returns

Handler

authorize(strategy: string, options: Object, callback?: Handler): Handler

Parameters

  • strategy: string
  • options: Object
  • callback?: Handler optional

Returns

Handler

deserializeUser(fn: (id: any, done: (err: any, user: any) => void) => void)

Parameters

  • fn: (id: any, done: (err: any, user: any) => void) => void

framework(fw: string): Passport

Parameters

  • fw: string

Returns

Passport

initialize(options?: { userProperty: string; }): Handler

Parameters

  • options?: { userProperty: string; } optional

Returns

Handler

serializeUser(fn: (user: any, done: (err: any, id: any) => void) => void)

Parameters

  • fn: (user: any, done: (err: any, id: any) => void) => void

session(options?: { pauseStream: boolean; }): Handler

Parameters

  • options?: { pauseStream: boolean; } optional

Returns

Handler

transformAuthInfo(fn: (info: any, done: (err: any, info: any) => void) => void)

Parameters

  • fn: (info: any, done: (err: any, info: any) => void) => void

unuse(name: string): Passport

Parameters

  • name: string

Returns

Passport

use(strategy: Strategy): Passport

Parameters

Returns

Passport

use(name: string, strategy: Strategy): Passport

Parameters

Returns

Passport