UNPKG

1.03 kBTypeScriptView Raw
1export declare const noFrontendApiError = "Clerk: You must add the frontendApi prop to your <ClerkProvider>";
2export declare const noClerkProviderError = "Clerk: You must wrap your application in a <ClerkProvider> component.";
3export declare const noGuaranteedLoadedError: (hookName: string) => string;
4export declare const noGuaranteedUserError: (hookName: string) => string;
5export declare const multipleClerkProvidersError = "Clerk: You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.";
6export declare const hocChildrenNotAFunctionError = "Clerk: Child of WithClerk must be a function.";
7export declare const multipleChildrenInButtonComponent: (name: string) => string;
8export declare const MagicLinkErrorCode: {
9 Expired: string;
10 Failed: string;
11};
12declare type MagicLinkError = {
13 code: 'expired' | 'failed';
14};
15export declare function isMagicLinkError(err: any): err is MagicLinkError;
16export {};
17//# sourceMappingURL=errors.d.ts.map
\No newline at end of file