Skip to content

Commit

Permalink
πŸ”„ synced local 'src/' with remote 'src/'
Browse files Browse the repository at this point in the history
  • Loading branch information
circle-github-action-bot committed Jun 27, 2024
1 parent 3ac2c54 commit 366d2de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ export class W3SSdk {

/**
* Sets the application settings.
* This method will be deprecated in the future. Please use the constructor to set the application settings.
* @param appSettings - Application settings.
*/
setAppSettings(appSettings: AppSettings): void {
if (this.configs) {
this.configs.appSettings = appSettings
} else {
this.configs = { appSettings }
}
}

Expand All @@ -120,6 +123,13 @@ export class W3SSdk {
setAuthentication(auth: Authentication): void {
if (this.configs) {
this.configs.authentication = auth
} else {
this.configs = {
appSettings: {
appId: '',
},
authentication: auth,
}
}
}

Expand Down

0 comments on commit 366d2de

Please sign in to comment.