Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TwitterServerAuthenticator

Implements

Index

Constructors

Properties

basicAuthenticator: BasicAuthenticator
delegateAuthRequest: (req: IncomingMessage, res: ServerResponse, routingInfo: Required<RoutingInfo>) => Promise<void>

Type declaration

    • (req: IncomingMessage, res: ServerResponse, routingInfo: Required<RoutingInfo>): Promise<void>
    • Handle requests required in the auth flow, for the most of time, it's used for redirecting user-agent from/to other identity provider (IdP). Any request match route "/{platform}/*" would be delegated to this method, and it's responsible to close the the server response.

      Parameters

      • req: IncomingMessage
      • res: ServerResponse
      • routingInfo: Required<RoutingInfo>

      Returns Promise<void>

platform: "twitter" = TWITTER

Methods

  • getAuthUrl(userId: string, redirectUrl?: string): string
  • verifyRefreshment(data: TwitterAuthData): Promise<VerifyResult<TwitterAuthData>>

Generated using TypeDoc