diff --git a/packages/web-runtime/src/services/auth/authService.ts b/packages/web-runtime/src/services/auth/authService.ts index 640491571f9..effa29f1628 100644 --- a/packages/web-runtime/src/services/auth/authService.ts +++ b/packages/web-runtime/src/services/auth/authService.ts @@ -66,7 +66,7 @@ export class AuthService { clientService: this.clientService, configurationManager: this.configurationManager, store: this.store, - $ability: this.$ability + ability: this.$ability }) this.userManager.events.addAccessTokenExpired((...args): void => { diff --git a/packages/web-runtime/src/services/auth/userManager.ts b/packages/web-runtime/src/services/auth/userManager.ts index 61b2f05cff7..40acc28cee4 100644 --- a/packages/web-runtime/src/services/auth/userManager.ts +++ b/packages/web-runtime/src/services/auth/userManager.ts @@ -19,7 +19,7 @@ export interface UserManagerOptions { clientService: ClientService configurationManager: ConfigurationManager store: Store - $ability: Ability + ability: Ability } export class UserManager extends OidcUserManager { @@ -29,7 +29,7 @@ export class UserManager extends OidcUserManager { private store: Store private updateAccessTokenPromise: Promise | null private _unloadReason: UnloadReason - private $ability: Ability + private ability: Ability constructor(options: UserManagerOptions) { const storePrefix = 'oc_oAuth.' @@ -86,7 +86,7 @@ export class UserManager extends OidcUserManager { this.clientService = options.clientService this.configurationManager = options.configurationManager this.store = options.store - this.$ability = options.$ability + this.ability = options.ability } /** @@ -271,6 +271,6 @@ export class UserManager extends OidcUserManager { private async updateUserAbilities(user, accessToken) { const permissions = await this.fetchPermissions({ user, accessToken }) const abilities = getAbilities(permissions) - this.$ability.update(abilities) + this.ability.update(abilities) } }