• This function will decode user from authorization header and add it to res.locals as res.locals.user

    Author

    aayushchugh

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      request

    • res: Response<any, Record<string, any>>

      response

    • next: NextFunction

    Returns Promise<void | Response<any, Record<string, any>>>

Generated using TypeDoc