@clerk/clerk-react
Version:
Clerk.dev React library
17 lines • 1.03 kB
TypeScript
export declare const noFrontendApiError = "Clerk: You must add the frontendApi prop to your <ClerkProvider>";
export declare const noClerkProviderError = "Clerk: You must wrap your application in a <ClerkProvider> component.";
export declare const noGuaranteedLoadedError: (hookName: string) => string;
export declare const noGuaranteedUserError: (hookName: string) => string;
export declare const multipleClerkProvidersError = "Clerk: You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.";
export declare const hocChildrenNotAFunctionError = "Clerk: Child of WithClerk must be a function.";
export declare const multipleChildrenInButtonComponent: (name: string) => string;
export declare const MagicLinkErrorCode: {
Expired: string;
Failed: string;
};
declare type MagicLinkError = {
code: 'expired' | 'failed';
};
export declare function isMagicLinkError(err: any): err is MagicLinkError;
export {};
//# sourceMappingURL=errors.d.ts.map