efficiency and exception change

This commit is contained in:
Julian Krauser 2024-09-06 10:08:19 +02:00
parent 4048c21c1f
commit 88212ff79b
32 changed files with 121 additions and 124 deletions

View file

@ -60,7 +60,7 @@ export async function login(req: Request, res: Response): Promise<any> {
})
.catch((err) => {
console.log(err);
throw new InternalException("Failed accessToken creation");
throw new InternalException("Failed accessToken creation", err);
});
let refreshCommand: CreateRefreshCommand = {
@ -128,8 +128,7 @@ export async function refresh(req: Request, res: Response): Promise<any> {
accessToken = result;
})
.catch((err) => {
console.log(err);
throw new InternalException("Failed accessToken creation");
throw new InternalException("Failed accessToken creation", err);
});
let refreshCommand: CreateRefreshCommand = {