Alpha Release 0.4.3 #139

Merged
niggl merged 6 commits from dev into main 2021-02-07 12:43:33 +00:00
2 changed files with 111 additions and 112 deletions
Showing only changes of commit 656d564baa - Show all commits

View File

@ -1,6 +1,6 @@
{
"name": "@odit/lfk-backend",
"version": "0.4.2",
"version": "0.4.3",
"main": "src/app.ts",
"repository": "https://git.odit.services/lfk/backend",
"author": {

View File

@ -31,7 +31,6 @@ export class AuthController {
@OpenAPI({ description: 'Login with your username/email and password. <br> You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)' })
async login(@Body({ validate: true }) createAuth: CreateAuth, @Res() response: any) {
let auth;
console.log(createAuth)
try {
auth = await createAuth.toAuth();
response.cookie('lfk_backend__refresh_token', auth.refresh_token, { expires: new Date(auth.refresh_token_expires_at * 1000), httpOnly: true });