@dream-api/sdk 0.1.6 → 0.1.8
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.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -284,11 +284,12 @@ var ClerkManager = class {
|
|
|
284
284
|
* Sign out
|
|
285
285
|
*/
|
|
286
286
|
async signOut() {
|
|
287
|
-
const clerk = getClerk();
|
|
288
|
-
if (!clerk) return;
|
|
289
|
-
await clerk.signOut();
|
|
290
287
|
this.token = null;
|
|
291
288
|
this.onTokenChange?.(null);
|
|
289
|
+
const clerk = getClerk();
|
|
290
|
+
if (clerk) {
|
|
291
|
+
await clerk.signOut();
|
|
292
|
+
}
|
|
292
293
|
}
|
|
293
294
|
/**
|
|
294
295
|
* Check if we're returning from auth (has clerk params/cookies)
|
package/dist/index.mjs
CHANGED
|
@@ -256,11 +256,12 @@ var ClerkManager = class {
|
|
|
256
256
|
* Sign out
|
|
257
257
|
*/
|
|
258
258
|
async signOut() {
|
|
259
|
-
const clerk = getClerk();
|
|
260
|
-
if (!clerk) return;
|
|
261
|
-
await clerk.signOut();
|
|
262
259
|
this.token = null;
|
|
263
260
|
this.onTokenChange?.(null);
|
|
261
|
+
const clerk = getClerk();
|
|
262
|
+
if (clerk) {
|
|
263
|
+
await clerk.signOut();
|
|
264
|
+
}
|
|
264
265
|
}
|
|
265
266
|
/**
|
|
266
267
|
* Check if we're returning from auth (has clerk params/cookies)
|