I have a method which is typed with: Express.Request
How can I access headers within this method?
Example Code:
private _onTokenReceived(req: Express.Request, res: Express.Response): void {
const header: string = req.headers.authorization;
}
In my example headers is not reachable.
Error: The "headers" property does not exist for the "Request" type.ts(2339)