Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessengerServerAuthenticator

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: "messenger" = MESSENGER

Methods

  • checkAuthData(data: MessengerAuthData): CheckDataResult<MessengerAuthContext>
  • getAuthUrl(userId: string, redirectUrl?: string): string
  • verifyCredential(): Promise<VerifyResult<MessengerAuthData>>
  • verifyRefreshment(data: MessengerAuthData): Promise<VerifyResult<MessengerAuthData>>

Generated using TypeDoc