Fixing wrong GetUserMiddleware option on /api/client/user
This commit is contained in:
parent
67dde954cc
commit
d98588d1c3
@ -16,7 +16,7 @@ const ClientRouter = Router();
|
|||||||
*
|
*
|
||||||
* @apiPermission user_client Requires ClientID and Authenticated User
|
* @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 { redirect_uri, state } = req.query;
|
||||||
let jwt = await createJWT({
|
let jwt = await createJWT({
|
||||||
client: req.client.client_id,
|
client: req.client.client_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user