Skip to content

Commit a4eebfb

Browse files
committed
feat: Update package dependencies for base and user packages, enhance AuthService configuration handling
1 parent ae09d85 commit a4eebfb

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

packages/base/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/api": "workspace:*"
15+
},
1316
"license": "SEE LICENSE IN LICENSE",
1417
"repository": "https://github.com/mixcore/javascript-sdk",
1518
"publishConfig": {

packages/user/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/api": "workspace:*",
15+
"@mixcore/shared": "workspace:*"
16+
},
1317
"license": "SEE LICENSE IN LICENSE",
1418
"repository": "https://github.com/mixcore/javascript-sdk",
1519
"publishConfig": {

packages/user/src/auth-services.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ export class AuthService {
216216
// Optionally, call /account/logout endpoint if needed
217217
// Optionally, use configurationService for additional cleanup
218218
if (this.config.configurationService) {
219-
await this.config.configurationService.clear();
219+
if (this.config.configurationService && 'clear' in this.config.configurationService) {
220+
await (this.config.configurationService as any).clear();
221+
}
220222
}
221223
}
222224

pnpm-lock.yaml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)