Skip to content

Commit

Permalink
chore(clerk-react): Drop handleMagicLinkVerification from isomorphi…
Browse files Browse the repository at this point in the history
…c Clerk
  • Loading branch information
dimkl committed Nov 7, 2023
1 parent e5bf9b6 commit e8b44c2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/react/src/isomorphicClerk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { inBrowser } from '@clerk/shared/browser';
import { deprecated } from '@clerk/shared/deprecated';
import { handleValueOrFn } from '@clerk/shared/handleValueOrFn';
import type {
ActiveSessionResource,
Expand All @@ -10,7 +9,6 @@ import type {
CreateOrganizationProps,
DomainOrProxyUrl,
HandleEmailLinkVerificationParams,
HandleMagicLinkVerificationParams,
HandleOAuthCallbackParams,
ListenerCallback,
OrganizationListProps,
Expand Down Expand Up @@ -664,18 +662,6 @@ export default class IsomorphicClerk {
this.premountMethodCalls.set('handleRedirectCallback', callback);
}
};
/**
* @deprecated Use `handleEmailLinkVerification` instead.
*/
handleMagicLinkVerification = async (params: HandleMagicLinkVerificationParams): Promise<void> => {
deprecated('handleMagicLinkVerification', 'Use `handleEmailLinkVerification` instead.');
const callback = () => this.clerkjs?.handleMagicLinkVerification(params);
if (this.clerkjs && this.#loaded) {
return callback() as Promise<void>;
} else {
this.premountMethodCalls.set('handleMagicLinkVerification', callback);
}
};

handleEmailLinkVerification = async (params: HandleEmailLinkVerificationParams): Promise<void> => {
const callback = () => this.clerkjs?.handleEmailLinkVerification(params);
Expand Down

0 comments on commit e8b44c2

Please sign in to comment.