diff --git a/app/controller/auth.controller.ts b/app/controller/auth.controller.ts index e89fdb6..20b1fdc 100644 --- a/app/controller/auth.controller.ts +++ b/app/controller/auth.controller.ts @@ -112,7 +112,7 @@ export class AuthController { const tokenRepository = new TokenRepository( db ); await tokenRepository.findToken( token ); - const user: User = this.tokenUtil.verifyRefreshToken( token ); + const user: any = this.tokenUtil.verifyRefreshToken( token ); return this.tokenUtil.generateAccessToken( user ); }; @@ -122,7 +122,7 @@ export class AuthController { * @param token token */ verify = async ( db: PostgreSqlProvider, token: string ) => { - const user: User = this.tokenUtil.verifyVerificationToken( token ); + const user: any = this.tokenUtil.verifyVerificationToken( token ); const userRepository = new UserRepository( db ); await userRepository.verifyUser( user.username ); diff --git a/app/controller/info.controller.ts b/app/controller/info.controller.ts index 2d0b77b..2f0c45e 100644 --- a/app/controller/info.controller.ts +++ b/app/controller/info.controller.ts @@ -11,7 +11,7 @@ export class InfoController { me = async ( db: PostgreSqlProvider, token: string ) => { const environment = new Environment(); const tokenUtil = new TokenUtil( environment.args() ); - const user: User = tokenUtil.verifyAccessToken( token ); + const user: any = tokenUtil.verifyAccessToken( token ); const userRepository = new UserRepository( db ); return userRepository.findEmailByUsername( user.username );