Interface OAuth2Options

Hierarchy

  • OAuth2Options

Properties

oauth2AccountHandler: ((profile: NormalizedProfile, req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>) => Promise<void>)

Type declaration

    • (profile: NormalizedProfile, req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<void>
    • Should sign in to the OAuth account if it exists, or create it if it doesn't.

      Parameters

      • profile: NormalizedProfile
      • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      Returns Promise<void>

oauth2Handler: ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>) => Promise<NormalizedProfile>)

Type declaration

    • (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<NormalizedProfile>
    • A function that returns a profile fetched from the service.

      Parameters

      • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      Returns Promise<NormalizedProfile>

Generated using TypeDoc