Cleaned up some errors

ref #25
This commit is contained in:
Nicolai Ort 2020-12-12 19:26:04 +01:00
parent aca3eaaeea
commit 6aa1e0d573
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export class AuthController {
try {
logout = await handleLogout.logout()
} catch (error) {
return error;
throw error;
}
return logout
}
@ -68,7 +68,7 @@ export class AuthController {
response.cookie('lfk_backend__refresh_token', auth.refresh_token, { expires: new Date(auth.refresh_token_expires_at * 1000), httpOnly: true });
response.cookie('lfk_backend__refresh_token_expires_at', auth.refresh_token_expires_at, { expires: new Date(auth.refresh_token_expires_at * 1000), httpOnly: true });
} catch (error) {
return error;
throw error;
}
return response.send(auth)
}