@dotbots-boutique/auth-sdk 1.0.15 → 1.0.16
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/cjs/index.js +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/types/DotBotsAuth.d.ts +1 -1
- package/dist/types/index.js +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -297,6 +297,7 @@ class DotBotsAuth {
|
|
|
297
297
|
this.cachedUser = null;
|
|
298
298
|
this.tokenManager.clear();
|
|
299
299
|
await this.tokenManager.exchangeCode(event.data.code);
|
|
300
|
+
await this.getUser();
|
|
300
301
|
this.emit('userChanged');
|
|
301
302
|
});
|
|
302
303
|
}
|
|
@@ -471,7 +472,7 @@ class DotBotsAuth {
|
|
|
471
472
|
}
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
|
-
DotBotsAuth.SDK_VERSION = '1.0.
|
|
475
|
+
DotBotsAuth.SDK_VERSION = '1.0.16';
|
|
475
476
|
|
|
476
477
|
exports.DotBotsAuth = DotBotsAuth;
|
|
477
478
|
exports.DotBotsAuthError = DotBotsAuthError;
|
package/dist/esm/index.js
CHANGED
|
@@ -295,6 +295,7 @@ class DotBotsAuth {
|
|
|
295
295
|
this.cachedUser = null;
|
|
296
296
|
this.tokenManager.clear();
|
|
297
297
|
await this.tokenManager.exchangeCode(event.data.code);
|
|
298
|
+
await this.getUser();
|
|
298
299
|
this.emit('userChanged');
|
|
299
300
|
});
|
|
300
301
|
}
|
|
@@ -469,6 +470,6 @@ class DotBotsAuth {
|
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
|
-
DotBotsAuth.SDK_VERSION = '1.0.
|
|
473
|
+
DotBotsAuth.SDK_VERSION = '1.0.16';
|
|
473
474
|
|
|
474
475
|
export { DotBotsAuth, DotBotsAuthError };
|
|
@@ -10,7 +10,7 @@ export declare class DotBotsAuth {
|
|
|
10
10
|
private cachedUser;
|
|
11
11
|
private initialized;
|
|
12
12
|
private initializePromise;
|
|
13
|
-
static readonly SDK_VERSION = "1.0.
|
|
13
|
+
static readonly SDK_VERSION = "1.0.16";
|
|
14
14
|
constructor(config: DotBotsConfig);
|
|
15
15
|
initialize(): Promise<void>;
|
|
16
16
|
private _doInitialize;
|
package/dist/types/index.js
CHANGED
|
@@ -295,6 +295,7 @@ class DotBotsAuth {
|
|
|
295
295
|
this.cachedUser = null;
|
|
296
296
|
this.tokenManager.clear();
|
|
297
297
|
await this.tokenManager.exchangeCode(event.data.code);
|
|
298
|
+
await this.getUser();
|
|
298
299
|
this.emit('userChanged');
|
|
299
300
|
});
|
|
300
301
|
}
|
|
@@ -469,6 +470,6 @@ class DotBotsAuth {
|
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
|
-
DotBotsAuth.SDK_VERSION = '1.0.
|
|
473
|
+
DotBotsAuth.SDK_VERSION = '1.0.16';
|
|
473
474
|
|
|
474
475
|
export { DotBotsAuth, DotBotsAuthError };
|