Type aliases
EggMiddleware
Egg
Middleware: (ctx: Context, next: () => Promise<void>) => Promise<void>
Type declaration
-
- (ctx: Context, next: () => Promise<void>): Promise<void>
-
Parameters
-
-
next: () => Promise<void>
Returns Promise<void>
JwtDecodedPayload
JwtDecodedPayload<T>: T
Type parameters
-
T: string | JsonType = JsonType
JwtPayload
JwtPayload: string | Buffer | JsonObject
JwtToken
JwtToken: string
PathPatternFunc
Path
PatternFunc: (ctx: Context) => boolean
Type declaration
-
-
Parameters
Returns boolean
RedirectURL
RedirectURL: string
VerifyOpts
VerifyOpts: Omit<VerifyOptions, "maxAge">
VerifySecret
VerifySecret: string | Buffer