Skip to content

Commit 97f3496

Browse files
committed
Fix warnMissingPendingTaskHandlers call
1 parent c0028b2 commit 97f3496

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/clerk-js/src/core/clerk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ export class Clerk implements ClerkInterface {
12321232
const sessionIsPending = newSession?.status === 'pending';
12331233

12341234
if (sessionIsPending) {
1235-
warnMissingPendingTaskHandlers(params);
1235+
warnMissingPendingTaskHandlers({ ...this.#options, ...params });
12361236
}
12371237

12381238
// At this point, the `session` variable should contain either an `SignedInSessionResource`
@@ -1305,7 +1305,7 @@ export class Clerk implements ClerkInterface {
13051305
}
13061306

13071307
const taskUrl =
1308-
sessionIsPending && this.session?.currentTask && this.#options.taskUrls?.[this.session?.currentTask.key];
1308+
sessionIsPending && newSession?.currentTask && this.#options.taskUrls?.[newSession?.currentTask.key];
13091309
const shouldNavigate = (redirectUrl || taskUrl || setActiveNavigate) && !beforeEmit;
13101310
if (shouldNavigate) {
13111311
await tracker.track(async () => {

packages/vue/src/components/controlComponents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { deprecated } from '@clerk/shared/deprecated';
22
import type {
3-
ProtectProps as _ProtectProps,
43
HandleOAuthCallbackParams,
54
PendingSessionOptions,
5+
ProtectProps as _ProtectProps,
66
RedirectOptions,
77
} from '@clerk/types';
88
import { defineComponent } from 'vue';

0 commit comments

Comments
 (0)