Skip to content

Commit 4327034

Browse files
Kehinde LawalKehinde Lawal
Kehinde Lawal
authored and
Kehinde Lawal
committed
feat(): added auth service, auth controller and cookies is set
1 parent 260b208 commit 4327034

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/authentication/authentication.controller.ts

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export default class AuthController {
2929
try {
3030
const { cookie, user } = await this.authService.register(userData);
3131
console.log({ user, cookie });
32-
33-
//await this.authService.register(userData);
3432
response.setHeader("Set-Cookie", [cookie]);
3533
response.send(user);
3634
} catch (error) {

src/authentication/authentication.service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import bcrypt from "bcrypt";
2-
import { userController } from "entity/users/user.controller";
32
import { ICreateUser } from "entity/users/user.interface";
43
import jwt from "jsonwebtoken";
54
import AppDataSource from "./../data-source";

0 commit comments

Comments
 (0)