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

Constructors

Properties

electronSecurityToken: ElectronSecurityToken

Methods

  • allowRequest(request: IncomingMessage): boolean
  • allowWsUpgrade(request: IncomingMessage): MaybePromise<boolean>
  • init(): void
  • isTokenValid(token: unknown): boolean