Skip to content

Commit

Permalink
Fix auth token in router
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani authored Jan 25, 2024
1 parent 06a17dc commit 777da6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/auth/auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ authRouter.get("/dev/", (req: Request, res: Response, next: NextFunction) => {
return next(new RouterError(StatusCode.ClientErrorBadRequest, "NoToken"));
}

return res.status(StatusCode.SuccessOK).send({ token: token });
return res.status(StatusCode.SuccessOK).send({ Authorization: token });
});

/**
Expand Down

0 comments on commit 777da6d

Please sign in to comment.