-
Notifications
You must be signed in to change notification settings - Fork 453
Expand file tree
/
Copy pathindex.ts
More file actions
99 lines (92 loc) · 2.35 KB
/
index.ts
File metadata and controls
99 lines (92 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/**
* These need to be explicitly listed. Do not use an * here.
* If you do, app router will break.
*/
export {
AuthenticateWithRedirectCallback,
ClerkDegraded,
ClerkFailed,
ClerkLoaded,
ClerkLoading,
UNSAFE_PortalProvider,
RedirectToCreateOrganization,
RedirectToOrganizationProfile,
RedirectToSignIn,
RedirectToSignUp,
RedirectToTasks,
RedirectToUserProfile,
} from './client-boundary/controlComponents';
/**
* These need to be explicitly listed. Do not use an * here.
* If you do, app router will break.
*/
export {
APIKeys,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
OrganizationList,
OrganizationProfile,
OrganizationSwitcher,
PricingTable,
SignIn,
SignInButton,
SignInWithMetamaskButton,
SignOutButton,
SignUp,
SignUpButton,
TaskChooseOrganization,
TaskResetPassword,
TaskSetupMFA,
UserAvatar,
UserButton,
UserProfile,
Waitlist,
} from './client-boundary/uiComponents';
/**
* These need to be explicitly listed. Do not use an * here.
* If you do, app router will break.
*/
export {
useAuth,
useClerk,
useEmailLink,
useOAuthConsent,
useOrganization,
useOrganizationCreationDefaults,
useOrganizationList,
useReverification,
useAPIKeys,
useSession,
useSessionList,
useSignIn,
useSignUp,
useWaitlist,
useUser,
} from './client-boundary/hooks';
export { getToken } from '@clerk/shared/getToken';
/**
* Conditionally export components that exhibit different behavior
* when used in /app vs /pages.
* We defined the runtime and the type values explicitly,
* because TS will not recognize the subpath import unless the HOST
* application sets moduleResolution to 'NodeNext'.
*/
// @ts-ignore
import * as ComponentsModule from '#components';
import type { ServerComponentsServerModuleTypes } from './components.server';
export const ClerkProvider = ComponentsModule.ClerkProvider as ServerComponentsServerModuleTypes['ClerkProvider'];
export const Show = ComponentsModule.Show as ServerComponentsServerModuleTypes['Show'];
/**
* `auth` is not available from this import path.
*
* **To fix this error:**
* ```diff
* - import { auth } from '@clerk/nextjs'
* + import { auth } from '@clerk/nextjs/server'
* ```
*
* The `auth` function is only available in server-side contexts:
* API Routes, Server Components, Server Actions, and Middleware.
*/
export declare const auth: never;