Options
All
  • Public
  • Public/Protected
  • All
Menu

@waiting/egg-jwt

Index

Type aliases

EggMiddleware

EggMiddleware: (ctx: Context, next: () => Promise<void>) => Promise<void>

Type declaration

    • (ctx: Context, next: () => Promise<void>): Promise<void>
    • Parameters

      • ctx: Context
      • next: () => Promise<void>
          • (): Promise<void>
          • Returns Promise<void>

      Returns Promise<void>

JwtDecodedPayload

JwtDecodedPayload<T>: T

Type parameters

  • T: string | JsonType = JsonType

JwtPayload

JwtPayload: string | Buffer | JsonObject

JwtToken

JwtToken: string

MiddlewarePathPattern

MiddlewarePathPattern: string | RegExp | PathPatternFunc | (string | RegExp | PathPatternFunc)[]

PathPatternFunc

PathPatternFunc: (ctx: Context) => boolean

Type declaration

RedirectURL

RedirectURL: string

VerifyOpts

VerifyOpts: Omit<VerifyOptions, "maxAge">

VerifySecret

VerifySecret: string | Buffer

passthroughCallback

passthroughCallback: (ctx: Context) => Promise<boolean | RedirectURL>

Type declaration

Generated using TypeDoc