Skip to content

Commit

Permalink
chore(vue): Remove unused primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Nov 6, 2024
1 parent 784af5e commit 6631b8d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/vue/src/components/controlComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
OrganizationCustomRoleKey,
RedirectOptions,
} from '@clerk/types';
import { defineComponent, watchEffect } from 'vue';
import { defineComponent } from 'vue';

import { useAuth } from '../composables/useAuth';
import { useClerk } from '../composables/useClerk';
Expand Down Expand Up @@ -96,14 +96,8 @@ type HandleOAuthCallbackParams = Omit<HandleOAuthCallbackParamsOriginal, 'transf
};

export const AuthenticateWithRedirectCallback = defineComponent((props: HandleOAuthCallbackParams) => {
const clerk = useClerk();

watchEffect(() => {
if (!clerk.value) {
return;
}

void clerk.value.handleRedirectCallback(props);
useClerkLoaded(clerk => {
void clerk.handleRedirectCallback(props);
});

return () => null;
Expand Down

0 comments on commit 6631b8d

Please sign in to comment.