diff --git a/src/Authorizer.ts b/src/Authorizer.ts index e12dc17f..6bdad146 100644 --- a/src/Authorizer.ts +++ b/src/Authorizer.ts @@ -83,7 +83,7 @@ export class Authorizer { } this.permission.load(permission); } - + public async initEnforcer(s: string): Promise { const obj = JSON.parse(s); if (!('m' in obj)) { @@ -107,7 +107,6 @@ export class Authorizer { } const resp = await axios.get(`${this.endpoint}?subject=${this.user}`, { headers: this.requestHeaders, - transformResponse: res => res, }); return resp.data.data; }