Interface Passport

Index

Methods

Methods

public 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

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

Parameters

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

Returns

Handler

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

Parameters

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

Returns

Handler

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

Parameters

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

public framework(fw: string): Passport

Parameters

  • fw: string

Returns

Passport

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

Parameters

  • options?: { userProperty: string; } optional

Returns

Handler

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

Parameters

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

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

Parameters

  • options?: { pauseStream: boolean; } optional

Returns

Handler

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

Parameters

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

public unuse(name: string): Passport

Parameters

  • name: string

Returns

Passport

public use(strategy: Strategy): Passport

Parameters

Returns

Passport

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

Parameters

Returns

Passport