-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy patherrors.ts
24 lines (19 loc) · 888 Bytes
/
errors.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const createErrorMessage = (msg: string) => {
return `🔒 Clerk: ${msg.trim()}
For more info, check out the docs: https://clerk.com/docs,
or come say hi in our discord server: https://clerk.com/discord
`;
};
export const middlewareRequired = (fnName: string) =>
createErrorMessage(`The "clerkMiddleware" should be registered before using "${fnName}".
Example:
import express from 'express';
import { clerkMiddleware } from '@clerk/express';
const app = express();
app.use(clerkMiddleware());
`);
export const satelliteAndMissingProxyUrlAndDomain =
'Missing domain and proxyUrl. A satellite application needs to specify a domain or a proxyUrl';
export const satelliteAndMissingSignInUrl = `
Invalid signInUrl. A satellite application requires a signInUrl for development instances.
Check if signInUrl is missing from your configuration or if it is not an absolute URL.`;