@55387.ai/uniauth-client 1.2.1 → 1.2.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.
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -905,6 +905,7 @@ var UniAuthClient = class {
|
|
|
905
905
|
this.storage.setRefreshToken(tokenResult.refresh_token);
|
|
906
906
|
}
|
|
907
907
|
const user = await this.getCurrentUser();
|
|
908
|
+
this.notifyAuthStateChange(user);
|
|
908
909
|
if (typeof window !== "undefined" && window.history) {
|
|
909
910
|
const cleanUrl = window.location.pathname;
|
|
910
911
|
window.history.replaceState({}, document.title, cleanUrl);
|
package/dist/index.js
CHANGED
|
@@ -871,6 +871,7 @@ var UniAuthClient = class {
|
|
|
871
871
|
this.storage.setRefreshToken(tokenResult.refresh_token);
|
|
872
872
|
}
|
|
873
873
|
const user = await this.getCurrentUser();
|
|
874
|
+
this.notifyAuthStateChange(user);
|
|
874
875
|
if (typeof window !== "undefined" && window.history) {
|
|
875
876
|
const cleanUrl = window.location.pathname;
|
|
876
877
|
window.history.replaceState({}, document.title, cleanUrl);
|