Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronTokenValidator

On Electron, we want to make sure that only Electron's browser-windows access the backend services.

Hierarchy

  • ElectronTokenValidator

Implements

Index

Properties

Protected electronSecurityToken

electronSecurityToken: ElectronSecurityToken

Methods

allowRequest

  • allowRequest(request: IncomingMessage): boolean

allowWsUpgrade

  • allowWsUpgrade(request: IncomingMessage): MaybePromise<boolean>

Protected getToken

isTokenValid

  • isTokenValid(token: any): boolean

Protected postConstruct

  • postConstruct(): void