Middleware
Middleware type for Express-compatible request handlers.- A standard Express
RequestHandler - A
RequestHandlerAndRouterobject containing both middleware and a router
RequestHandlerAndRouter
Combined middleware and router configuration.Express request handler middleware function
Express router instance
WebMiddleware
Middleware type for web-based request handling.- A
Responseobject to send immediately voidto continue to the next middleware- A
Promiseresolving to either of the above
The incoming web request
Context object containing authentication information and utilities
WebMiddlewareContext
Context object passed to web middleware functions.Current authentication information, if available
The access token
The client ID associated with this token
Scopes associated with this token
When the token expires (in seconds since epoch)
The RFC 8707 resource server identifier for which this token is valid
Additional data associated with the token
Function to update the authentication information in the context