Skip to content

SudoSOS Back-end API / internal/middleware / RequestWithToken

Interface: RequestWithToken ​

Extend the Express request interface with a token property, which will be filled by this middleware.

Extends ​

Properties ​

rawBody ​

ts
rawBody: Buffer;

Inherited from ​

RequestWithRawBody.rawBody


token ​

ts
token: JsonWebToken;

The parsed JWT in the request header.