@@ -17,7 +17,7 @@ export class AuthController extends BaseController {
1717   * constructor 
1818   * @param  kuzzle 
1919   */ 
20-   constructor ( kuzzle )  { 
20+   constructor   ( kuzzle )  { 
2121    super ( kuzzle ,  'auth' ) ; 
2222
2323    this . _authenticationToken  =  null ; 
@@ -50,8 +50,8 @@ export class AuthController extends BaseController {
5050   * Do not add the token for the checkToken route, to avoid getting a token error when 
5151   * a developer simply wishes to verify their token 
5252   */ 
53-   authenticateRequest ( request : any )  { 
54-     if  ( ! this . authenticationToken 
53+   authenticateRequest   ( request : any )  { 
54+     if  (   !   this . authenticationToken 
5555      ||  ( request . controller  ===  'auth' 
5656        &&  ( request . action  ===  'checkToken'  ||  request . action  ===  'login' ) ) 
5757    )  { 
@@ -99,7 +99,7 @@ export class AuthController extends BaseController {
9999   * 
100100   * @param  requestPayload Request to check 
101101   */ 
102-   checkRights ( requestPayload : RequestPayload ) : Promise < boolean >  { 
102+   checkRights   ( requestPayload : RequestPayload ) : Promise < boolean >  { 
103103    const  request  =  { 
104104      body : requestPayload , 
105105      action : 'checkRights' 
@@ -175,7 +175,7 @@ export class AuthController extends BaseController {
175175   * 
176176   * @returns  A token validity object 
177177   */ 
178-   checkToken ( token ?: string ) : Promise < { 
178+   checkToken   ( token ?: string ) : Promise < { 
179179    /** 
180180     * Tell if the token is valid or not 
181181     */ 
@@ -213,7 +213,7 @@ export class AuthController extends BaseController {
213213   * @returns  An object representing the new credentials. 
214214   *    The content depends on the authentication strategy 
215215   */ 
216-   createMyCredentials ( 
216+   createMyCredentials   ( 
217217    strategy : string , 
218218    credentials : JSONObject , 
219219    options : {  queuable ?: boolean  }  =  { } 
@@ -237,7 +237,7 @@ export class AuthController extends BaseController {
237237   * 
238238   * @returns  A boolean indicating if the credentials exists 
239239   */ 
240-   credentialsExist ( 
240+   credentialsExist   ( 
241241    strategy : string , 
242242    options : {  queuable ?: boolean  }  =  { } 
243243  ) : Promise < boolean >  { 
@@ -257,7 +257,7 @@ export class AuthController extends BaseController {
257257   * @param  options Additional options 
258258   *    - `queuable` If true, queues the request during downtime, until connected to Kuzzle again 
259259   */ 
260-   deleteMyCredentials ( 
260+   deleteMyCredentials   ( 
261261    strategy : string , 
262262    options : {  queuable ?: boolean  }  =  { } 
263263  ) : Promise < boolean >  { 
@@ -278,7 +278,7 @@ export class AuthController extends BaseController {
278278   * 
279279   * @returns  Currently logged User 
280280   */ 
281-   getCurrentUser ( options : {  queuable ?: boolean  }  =  { } ) : Promise < User >  { 
281+   getCurrentUser   ( options : {  queuable ?: boolean  }  =  { } ) : Promise < User >  { 
282282    return  this . query ( { 
283283      action : 'getCurrentUser' 
284284    } ,  options ) 
@@ -321,7 +321,7 @@ export class AuthController extends BaseController {
321321   * 
322322   * @returns  An array containing user rights objects 
323323   */ 
324-   getMyRights ( 
324+   getMyRights   ( 
325325    options : {  queuable ?: boolean  }  =  { } 
326326  ) : Promise < Array < { 
327327    /** 
@@ -361,7 +361,7 @@ export class AuthController extends BaseController {
361361   * 
362362   * @returns  An array of available strategies names 
363363   */ 
364-   getStrategies ( options : {  queuable ?: boolean  }  =  { } ) : Promise < Array < string > >  { 
364+   getStrategies   ( options : {  queuable ?: boolean  }  =  { } ) : Promise < Array < string > >  { 
365365    return  this . query ( { 
366366      action : 'getStrategies' 
367367    } ,  options ) 
@@ -380,7 +380,7 @@ export class AuthController extends BaseController {
380380   * 
381381   * @returns  The encrypted JSON Web Token 
382382   */ 
383-   login ( 
383+   login   ( 
384384    strategy : string , 
385385    credentials : JSONObject , 
386386    expiresIn ?: string  |  number 
@@ -411,7 +411,7 @@ export class AuthController extends BaseController {
411411   * 
412412   * @see  https://docs.kuzzle.io/sdk/js/7/controllers/auth/logout 
413413   */ 
414-   logout ( ) : Promise < void >  { 
414+   logout   ( ) : Promise < void >  { 
415415    return  this . query ( { 
416416      action : 'logout' 
417417    } ,  {  queuable : false  } ) 
@@ -433,7 +433,7 @@ export class AuthController extends BaseController {
433433   * @returns  An object representing the updated credentials. 
434434   *    The content depends on the authentication strategy 
435435   */ 
436-   updateMyCredentials ( 
436+   updateMyCredentials   ( 
437437    strategy : string , 
438438    credentials : JSONObject , 
439439    options : {  queuable ?: boolean  }  =  { } 
@@ -458,7 +458,7 @@ export class AuthController extends BaseController {
458458   * 
459459   * @returns  Currently logged User 
460460   */ 
461-   updateSelf ( 
461+   updateSelf   ( 
462462    content : JSONObject , 
463463    options : {  queuable ?: boolean  }  =  { } 
464464  ) : Promise < User >  { 
@@ -482,7 +482,7 @@ export class AuthController extends BaseController {
482482   * @param  options Additional options 
483483   *    - `queuable` If true, queues the request during downtime, until connected to Kuzzle again 
484484   */ 
485-   validateMyCredentials ( 
485+   validateMyCredentials   ( 
486486    strategy : string , 
487487    credentials : JSONObject , 
488488    options : {  queuable ?: boolean  }  =  { } 
0 commit comments