Skip to content

Commit

Permalink
refactor: set configs access modifiers in base class instead of inher…
Browse files Browse the repository at this point in the history
…itied classes
  • Loading branch information
ctran88 committed Dec 30, 2024
1 parent 8dad26a commit 3a73261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/classes/Auth/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Auth extends PassageBase {
* Auth class constructor.
* @param {PassageInstanceConfig} config config properties for Passage instance
*/
public constructor(protected readonly config: PassageInstanceConfig) {
public constructor(config: PassageInstanceConfig) {
super(config);
this.jwks = createRemoteJWKSet(
new URL(`https://auth.passage.id/v1/apps/${this.config.appId}/.well-known/jwks.json`),
Expand Down
2 changes: 1 addition & 1 deletion src/classes/PassageBase/PassageBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class PassageBase {
* PassageBase class constructor.
* @param {PassageInstanceConfig} config config properties for Passage instance
*/
public constructor(protected config: PassageInstanceConfig) {}
public constructor(protected readonly config: PassageInstanceConfig) {}

/**
* Handle errors from PassageFlex API
Expand Down
2 changes: 1 addition & 1 deletion src/classes/User/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class User extends PassageBase {
* User class constructor.
* @param {PassageInstanceConfig} config config properties for Passage instance
*/
public constructor(protected readonly config: PassageInstanceConfig) {
public constructor(config: PassageInstanceConfig) {
super(config);
this.usersApi = new UsersApi(this.config.apiConfiguration);
this.userDevicesApi = new UserDevicesApi(this.config.apiConfiguration);
Expand Down

0 comments on commit 3a73261

Please sign in to comment.