efficiency and exception change
This commit is contained in:
parent
4048c21c1f
commit
88212ff79b
32 changed files with 121 additions and 124 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue