You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The `useAuth()` hook provides access to the current user's authentication state and methods to manage the active session.
29
27
*
28
+
* > [!NOTE]
29
+
* > To access auth data server-side, see the [`Auth` object reference doc](https://clerk.com/docs/references/backend/types/auth-object).
30
+
*
30
31
* <If sdk="nextjs">
31
32
* By default, Next.js opts all routes into static rendering. If you need to opt a route or routes into dynamic rendering because you need to access the authentication data at request time, you can create a boundary by passing the `dynamic` prop to `<ClerkProvider>`. See the [guide on rendering modes](https://clerk.com/docs/references/nextjs/rendering-modes) for more information, including code examples.
32
33
* </If>
33
34
*
34
35
* @unionReturnHeadings
35
36
* ["Initialization", "Signed out", "Signed in (no active organization)", "Signed in (with active organization)"]
36
37
*
37
-
* @param [initialAuthStateOrOptions] - An object containing the initial authentication state. If not provided, the hook will attempt to derive the state from the context.
38
+
* @param [initialAuthStateOrOptions] - An object containing the initial authentication state or options for the `useAuth()` hook. If not provided, the hook will attempt to derive the state from the context. `treatPendingAsSignedOut` is a boolean that indicates whether pending sessions are considered as signed out or not. Defaults to `true`.
* Define the URL that `@clerk/clerk-js` should be hot-loaded from
27
+
* The URL that `@clerk/clerk-js` should be hot-loaded from.
28
28
*/
29
29
clerkJSUrl?: string;
30
30
/**
31
31
* If your web application only uses [Control Components](https://clerk.com/docs/components/overview#control-components), you can set this value to `'headless'` and load a minimal ClerkJS bundle for optimal page performance.
Copy file name to clipboardExpand all lines: packages/shared/src/react/hooks/useOrganization.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ export type UseOrganizationParams = {
32
32
* If set to `true`, all default properties will be used.<br />
33
33
* Otherwise, accepts an object with the following optional properties:
34
34
* <ul>
35
-
* <li>`enrollmentMode`: A string that filters the domains by the provided enrollment mode.</li>
35
+
* <li>`enrollmentMode`: A string that filters the domains by the provided [enrollment mode](https://clerk.com/docs/organizations/verified-domains#enrollment-mode).</li>
36
36
* <li>Any of the properties described in [Shared properties](#shared-properties).</li>
37
37
* </ul>
38
38
*/
@@ -69,7 +69,7 @@ export type UseOrganizationParams = {
69
69
* If set to `true`, all default properties will be used.<br />
70
70
* Otherwise, accepts an object with the following optional properties:
71
71
* <ul>
72
-
* <li>`status`: A string that filters the subscriptions by the provided status.</li>
72
+
* <li>`orgId`: A string that filters the subscriptions by the provided organization ID.</li>
73
73
* <li>Any of the properties described in [Shared properties](#shared-properties).</li>
Copy file name to clipboardExpand all lines: packages/types/src/redirects.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ export type AfterSignOutUrl = {
9
9
10
10
exporttypeAfterMultiSessionSingleSignOutUrl={
11
11
/**
12
-
* Full URL or path to navigate to after signing out the current user is complete.
13
-
* This option applies to multi-session applications.
12
+
* The full URL or path to navigate to after signing out the current user is complete.
13
+
* This option applies to [multi-session applications](https://clerk.com/docs/authentication/configuration/session-options#multi-session-applications).
14
14
*/
15
15
afterMultiSessionSingleSignOutUrl?: string|null;
16
16
};
@@ -45,14 +45,14 @@ export type RedirectOptions = SignInForceRedirectUrl &
45
45
46
46
exporttypeAuthenticateWithRedirectParams={
47
47
/**
48
-
* Full URL or path to the route that will complete the OAuth or SAML flow.
48
+
* The full URL or path to the route that will complete the OAuth or SAML flow.
49
49
* Typically, this will be a simple `/sso-callback` route that calls `Clerk.handleRedirectCallback`
50
50
* or mounts the <AuthenticateWithRedirectCallback /> component.
51
51
*/
52
52
redirectUrl: string;
53
53
54
54
/**
55
-
* Full URL or path to navigate to after the OAuth or SAML flow completes.
55
+
* The full URL or path to navigate to after the OAuth or SAML flow completes.
56
56
*/
57
57
redirectUrlComplete: string;
58
58
@@ -94,7 +94,7 @@ export type RedirectUrlProp = {
94
94
95
95
exporttypeSignUpForceRedirectUrl={
96
96
/**
97
-
* If provided, this URL will always be redirected to after the user signs up. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
97
+
* This URL will always be redirected to after the user signs up. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
98
98
*/
99
99
signUpForceRedirectUrl?: string|null;
100
100
};
@@ -117,7 +117,7 @@ export type SignInFallbackRedirectUrl = {
117
117
118
118
exporttypeSignInForceRedirectUrl={
119
119
/**
120
-
* If provided, this URL will always be redirected to after the user signs in. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
120
+
* This URL will always be redirected to after the user signs in. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
0 commit comments