ngx-techlify-core 14.4.1 → 14.4.2
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.
|
@@ -3389,13 +3389,11 @@ class AuthenticationService {
|
|
|
3389
3389
|
tokenInfo.expires_in = Date.now() + (tokenInfo.expires_in * 1000);
|
|
3390
3390
|
data.token = tokenInfo;
|
|
3391
3391
|
data.user = {};
|
|
3392
|
-
this.credentialsService.setCredentials(data, context.remember);
|
|
3393
3392
|
return this.http.get('api/user/current')
|
|
3394
3393
|
.pipe(map((res) => {
|
|
3395
3394
|
data.user = res?.user;
|
|
3396
|
-
this.credentialsService.setCredentials(data, context.remember);
|
|
3397
3395
|
return data;
|
|
3398
|
-
}));
|
|
3396
|
+
}), finalize(() => this.credentialsService.setCredentials(data, context.remember)));
|
|
3399
3397
|
}));
|
|
3400
3398
|
}
|
|
3401
3399
|
/**
|