UNPKG

svelte-clerk

Version:

Svelte Clerk is the easiest way to add authentication and user management to your Svelte and SvelteKit applications. Add sign up, sign in, and profile management to your application in minutes.

9 lines (8 loc) 1.14 kB
import { type Handle } from '@sveltejs/kit'; import { type AuthenticateRequestOptions } from '@clerk/backend/internal'; export type ClerkSvelteKitMiddlewareOptions = AuthenticateRequestOptions & { debug?: boolean; }; export declare function withClerkHandler(middlewareOptions?: ClerkSvelteKitMiddlewareOptions): Handle; export declare const missingDomainAndProxy = "\nMissing domain and proxyUrl. A satellite application needs to specify a domain or a proxyUrl.\n\n1) With handler\n e.g. export const handle = withClerkHandler({domain:'YOUR_DOMAIN',isSatellite:true});\n2) With environment variables e.g.\n PUBLIC_CLERK_DOMAIN='YOUR_DOMAIN'\n PUBLIC_CLERK_IS_SATELLITE='true'\n "; export declare const missingSignInUrlInDev = "\nInvalid signInUrl. A satellite application requires a signInUrl for development instances.\nCheck if signInUrl is missing from your configuration or if it is not an absolute URL\n\n1) With handler\n e.g. export const handle = withClerkHandler({signInUrl:'SOME_URL', isSatellite:true});\n2) With environment variables e.g.\n PUBLIC_CLERK_SIGN_IN_URL='SOME_URL'\n PUBLIC_CLERK_IS_SATELLITE='true'";