@snugdesk/core 0.0.13 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/snugdesk-core.mjs +3 -3
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +23 -62
- package/package.json +1 -1
|
@@ -585,7 +585,7 @@ class SnugdeskAuthenticationService {
|
|
|
585
585
|
userSubscription;
|
|
586
586
|
userSessionSubscription;
|
|
587
587
|
jwtHelper = new JwtHelperService();
|
|
588
|
-
TOKEN_KEY = 'sd-
|
|
588
|
+
TOKEN_KEY = 'sd-authSessionToken';
|
|
589
589
|
constructor(authenticationHelperService) {
|
|
590
590
|
this.authenticationHelperService = authenticationHelperService;
|
|
591
591
|
this.isAuthenticated$.next(this.isAuthenticated());
|
|
@@ -695,11 +695,11 @@ class SnugdeskAuthenticationService {
|
|
|
695
695
|
}
|
|
696
696
|
if (token) {
|
|
697
697
|
this.setToken(token);
|
|
698
|
-
console.debug('Login Success - Token set in authentication service: ', token);
|
|
698
|
+
// console.debug('Login Success - Token set in authentication service: ', token);
|
|
699
699
|
}
|
|
700
700
|
else if (!this.isAuthenticated()) {
|
|
701
701
|
const res_login = await this.login(tenantId, userId);
|
|
702
|
-
console.debug('Login Success: ', res_login);
|
|
702
|
+
// console.debug('Login Success: ', res_login);
|
|
703
703
|
}
|
|
704
704
|
this.isAuthenticated$.next(true);
|
|
705
705
|
return true;
|