@@ -31,7 +31,7 @@ export class AuthService {
3131 username : string ,
3232 pass : string ,
3333 ) : Promise < UserAccessTokenClaims > {
34- this . logger . logWithContext ( ctx , `${ this . validateUser . name } was called` ) ;
34+ this . logger . log ( ctx , `${ this . validateUser . name } was called` ) ;
3535
3636 // The userService will throw Unauthorized in case of invalid username/password.
3737 const user = await this . userService . validateUsernamePassword (
@@ -49,7 +49,7 @@ export class AuthService {
4949 }
5050
5151 login ( ctx : RequestContext ) : AuthTokenOutput {
52- this . logger . logWithContext ( ctx , `${ this . login . name } was called` ) ;
52+ this . logger . log ( ctx , `${ this . login . name } was called` ) ;
5353
5454 return this . getAuthToken ( ctx , ctx . user ) ;
5555 }
@@ -58,7 +58,7 @@ export class AuthService {
5858 ctx : RequestContext ,
5959 input : RegisterInput ,
6060 ) : Promise < RegisterOutput > {
61- this . logger . logWithContext ( ctx , `${ this . register . name } was called` ) ;
61+ this . logger . log ( ctx , `${ this . register . name } was called` ) ;
6262
6363 // TODO : Setting default role as USER here. Will add option to change this later via ADMIN users.
6464 input . roles = [ ROLE . USER ] ;
@@ -71,7 +71,7 @@ export class AuthService {
7171 }
7272
7373 async refreshToken ( ctx : RequestContext ) : Promise < AuthTokenOutput > {
74- this . logger . logWithContext ( ctx , `${ this . refreshToken . name } was called` ) ;
74+ this . logger . log ( ctx , `${ this . refreshToken . name } was called` ) ;
7575
7676 const user = await this . userService . findById ( ctx , ctx . user . id ) ;
7777 if ( ! user ) {
@@ -85,7 +85,7 @@ export class AuthService {
8585 ctx : RequestContext ,
8686 user : UserAccessTokenClaims | UserOutput ,
8787 ) : AuthTokenOutput {
88- this . logger . logWithContext ( ctx , `${ this . getAuthToken . name } was called` ) ;
88+ this . logger . log ( ctx , `${ this . getAuthToken . name } was called` ) ;
8989
9090 const subject = { sub : user . id } ;
9191 const payload = {
0 commit comments