Fixing wrong GetUserMiddleware option on /api/client/user

This commit is contained in:
Fabian Stamm 2019-03-15 15:28:45 +00:00
parent 67dde954cc
commit d98588d1c3

View File

@ -16,7 +16,7 @@ const ClientRouter = Router();
*
* @apiPermission user_client Requires ClientID and Authenticated User
*/
ClientRouter.get("/user", Stacker(GetClientAuthMiddleware(false), GetUserMiddleware(true, false), async (req: Request, res: Response) => {
ClientRouter.get("/user", Stacker(GetClientAuthMiddleware(false), GetUserMiddleware(false, false), async (req: Request, res: Response) => {
let { redirect_uri, state } = req.query;
let jwt = await createJWT({
client: req.client.client_id,