Skip to content

Property 'useragent' does not exist on type 'Request<ParamsDictionary>' #128

@haveamission

Description

@haveamission

Trying to use express-useragent with NodeJS/Express/TypeScript and getting this error.

Code:

app.get("/chat", keycloak.protect(), async (req, res) => {
    let chatController = new ChatController();
    let url = await chatController.openAppChat(req.useragent, channeluserId, merchantName);
    res.redirect(url);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions