• A helper function to redirect users to sign-in if they aren't already authenticated. Should probably only be used for BFFs (Backend-For-Frontend)

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>>
    • next: NextFunction

    Returns Promise<void>