Skip to content

Commit c9f7ea6

Browse files
alexisintechoctopervictoriaxyz
authored
(javascript) update parameters and formatting of some references (#1912)
Co-authored-by: Vaggelis Yfantis <[email protected]> Co-authored-by: victoria <[email protected]>
1 parent c4a4fe0 commit c9f7ea6

22 files changed

+251
-228
lines changed

docs/references/javascript/clerk/clerk.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ The `Clerk` class is the main entrypoint class for the `@clerk/clerk-js` package
3232
- `domain`
3333
- `string`
3434

35-
A getter for the current Clerk app's domain.<br />Prefixed with `clerk.` on production if not already prefixed.<br />Returns `""` when ran on the server
35+
A getter for the current Clerk app's domain. Prefixed with `clerk.` on production if not already prefixed. Returns `""` when ran on the server
3636

3737
---
3838

3939
- `proxyUrl`
4040
- `string`
4141

42-
A getter for your Clerk app's proxy URL. Required for applications that run behind a reverse proxy.<br />Can be either a relative path (`/__clerk`) or a full URL (`https://<your-domain>/__clerk`).
42+
A getter for your Clerk app's proxy URL. Required for applications that run behind a reverse proxy. Can be either a relative path (`/__clerk`) or a full URL (`https://<your-domain>/__clerk`).
4343

4444
---
4545

@@ -148,14 +148,14 @@ function authenticateWithMetamask({
148148
- `redirectUrl?`
149149
- `string | undefined`
150150

151-
The full URL or path to navigate to after a successful sign in or sign up.
151+
The full URL or path to navigate to after a successful sign-in or sign-up.
152152

153153
---
154154

155155
- `signUpContinueUrl?`
156156
- `string | undefined`
157157

158-
The URL to navigate to in the sign-up process if data is missing.
158+
The URL to navigate to if the sign-up process is missing user information.
159159

160160
---
161161

@@ -181,14 +181,14 @@ function authenticateWithCoinbaseWallet({
181181
- `redirectUrl?`
182182
- `string | undefined`
183183

184-
The full URL or path to navigate to after a successful sign in or sign up.
184+
The full URL or path to navigate to after a successful sign-in or sign-up.
185185

186186
---
187187

188188
- `signUpContinueUrl?`
189189
- `string | undefined`
190190

191-
The full URL or path to navigate to in the sign-up process if data is missing.
191+
The full URL or path to navigate to if the sign-up process is missing user information.
192192

193193
---
194194

@@ -219,7 +219,7 @@ function authenticateWithOKXWallet(props?: AuthenticateWithOKXWalletParams): Pro
219219
- `signUpContinueUrl?`
220220
- `string | undefined`
221221

222-
The full URL or path to navigate to in the sign-up process if data is missing.
222+
The full URL or path to navigate to if the sign-up process is missing user information.
223223

224224
---
225225

@@ -240,7 +240,7 @@ function authenticateWithOKXWallet(props?: AuthenticateWithOKXWalletParams): Pro
240240
- `legalAccepted?`
241241
- `boolean`
242242

243-
The user has agreed to the [legal compliance](/docs/authentication/configuration/legal-compliance) documents.
243+
A boolean indicating whether the user has agreed to the [legal compliance](/docs/authentication/configuration/legal-compliance) documents.
244244
</Properties>
245245

246246
### `authenticateWithWeb3()`
@@ -267,7 +267,7 @@ function authenticateWithWeb3({
267267
- `signUpContinueUrl?`
268268
- `string | undefined`
269269

270-
The full URL or path to navigate to in the sign-up process if data is missing.
270+
The full URL or path to navigate to if the sign-up process is missing user information.
271271

272272
---
273273

docs/references/javascript/clerk/handle-navigation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Take a look at the function parameters description below for more usage details.
4242
- `params`
4343
- [`handleEmailLinkVerificationParams`](#handle-email-link-verification-params)
4444

45-
Allows you to define the URLs where the user should be redirected to on successful verification and: <ul><li>Completed sign in or sign up attempt.</li><li>Pending sign in or sign up attempt.</li></ul><br />If the email link is successfully verified on another device, there's a callback function parameter that allows custom code execution.
45+
Allows you to define the URLs where the user should be redirected to on successful verification or pending/completed sign-up or sign-in attempts. If the email link is successfully verified on another device, there's a callback function parameter that allows custom code execution.
4646

4747
---
4848

@@ -58,14 +58,14 @@ Take a look at the function parameters description below for more usage details.
5858
- `redirectUrlComplete?`
5959
- `string | undefined`
6060

61-
Full URL or path to navigate after successful email link verification on completed sign up or sign in on the same device.
61+
The full URL or path to navigate to after successful email link verification on completed sign-up or sign-in on the same device.
6262

6363
---
6464

6565
- `redirectUrl?`
6666
- `string | undefined`
6767

68-
Full URL or path to navigate after successful email link verification on the same device, but not completed sign in or sign up.
68+
The full URL or path to navigate to after successful email link verification on the same device, but without completing sign-in or sign-up.
6969

7070
---
7171

docs/references/javascript/email-address.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,17 @@ function prepareVerification(params: PrepareEmailAddressVerificationParams): Pro
8080
- `strategy`
8181
- `'email_link' | 'email_code'`
8282

83-
The verification strategy.<br />Possible strategy values are:<br /><ul><li>`email_link`: User will receive an email link via email.</li><li>`email_code`: User will receive a one-time authentication code via email.</li></ul>
83+
The verification strategy. Supported strategies are:
84+
85+
- `email_link`: User will receive an email link via email.
86+
- `email_code`: User will receive a one-time authentication code via email.
8487

8588
---
8689

8790
- `redirectUrl`
8891
- `string | undefined`
8992

90-
The email link target URL. Users will be redirected here once they click the email link from their email. This param only applies if `strategy` is `email_link`.
93+
**Required** if `strategy` is set to `email_link`. The URL that the user will be redirected to when they visit the email link. See the [custom flow](/docs/custom-flows/email-links) for implementation details.
9194
</Properties>
9295

9396
### `attemptVerification()`
@@ -146,5 +149,5 @@ function createEmailLinkFlow(): {
146149
- `redirectUrl`
147150
- `string`
148151

149-
The email link target URL. Users will be redirected here once they click the email link from their email.
152+
The URL that the user will be redirected to when they visit the email link.
150153
</Properties>

docs/references/javascript/external-account.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ External account must be verified, so that you can make sure they can be assigne
2727
- `provider`
2828
- `string`
2929

30-
The provider name e.g. `google`
30+
The provider name (e.g., `google`).
3131

3232
---
3333

@@ -41,7 +41,7 @@ External account must be verified, so that you can make sure they can be assigne
4141
- `emailAddress`
4242
- `string`
4343

44-
The provided email address of the user.
44+
The user's email address.
4545

4646
---
4747

@@ -55,28 +55,28 @@ External account must be verified, so that you can make sure they can be assigne
5555
- `firstName`
5656
- `string`
5757

58-
The provided first name of the user.
58+
The user's first name.
5959

6060
---
6161

6262
- `lastName`
6363
- `string`
6464

65-
The provided last name of the user.
65+
The user's last name.
6666

6767
---
6868

6969
- `imageUrl`
7070
- `string`
7171

72-
The provided image URL of the user.
72+
The user's image URL.
7373

7474
---
7575

7676
- `username`
7777
- `string | null`
7878

79-
The provided username of the user.
79+
The user's username.
8080

8181
---
8282

@@ -116,14 +116,14 @@ function reauthorize(params: ReauthorizeExternalAccountParams): Promise<External
116116
- `additionalScopes`
117117
- `string[]`
118118

119-
Any additional scopes you would like your user to be prompted to approve.
119+
Additional scopes for your user to be prompted to approve.
120120

121121
---
122122

123123
- `redirectUrl`
124124
- `string`
125125

126-
The URL to redirect back to one the OAuth flow has completed successfully or unsuccessfully.
126+
The full URL or path that the OAuth provider should redirect to on successful authorization on their part. Typically, this will be a simple `/sso-callback` route that calls [`Clerk.handleRedirectCallback`](/docs/references/javascript/clerk/handle-navigation#handle-redirect-callback) or mounts the [`<AuthenticateWithRedirectCallback />`](/docs/components/control/authenticate-with-callback) component. See the [custom flow](/docs/custom-flows/oauth-connections) for implementation details.
127127

128128
---
129129

docs/references/javascript/session.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function getToken(options?: GetTokenOptions): Promise<string | null>
160160
- `template?`
161161
- `string`
162162

163-
The name of the JWT template from the [Clerk Dashboard](https://dashboard.clerk.com/last-active?path=jwt-templates) to generate a new token from.<br />E.g. 'firebase', 'grafbase', or your custom template's name.
163+
The name of the JWT template from the [Clerk Dashboard](https://dashboard.clerk.com/last-active?path=jwt-templates) to generate a new token from. E.g. 'firebase', 'grafbase', or your custom template's name.
164164

165165
---
166166

@@ -174,7 +174,7 @@ function getToken(options?: GetTokenOptions): Promise<string | null>
174174
- `skipCache?`
175175
- `boolean`
176176

177-
Whether to skip the cache lookup and force a call to the server instead, even within the TTL. Useful if the token claims are time-sensitive or depend on data that can be updated (e.g. user fields).<br />Defaults to `false`.
177+
Whether to skip the cache lookup and force a call to the server instead, even within the TTL. Useful if the token claims are time-sensitive or depend on data that can be updated (e.g. user fields). Defaults to `false`.
178178

179179
---
180180

docs/references/javascript/sign-in/authenticate-with.mdx

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,44 @@ function authenticateWithRedirect(params: AuthenticateWithRedirectParams): Promi
2323

2424
The strategy to use for authentication. The following strategies are supported:
2525

26-
- `oauth_<provider>`: The user will be authenticated with their social sign-in account. [See available social providers](/docs/references/javascript/types/oauth#o-auth-provider).
27-
- `saml`: The user will be authenticated with SAML. **Deprecated in favor of `enterprise_sso`.**
28-
- `enterprise_sso`: The user will be authenticated either through SAML or OIDC, depending on the configuration of the [enterprise connection](/docs/authentication/enterprise-connections/overview) matching the identifier.
26+
- `'oauth_<provider>'`: The user will be authenticated with their [social connection account](/docs/authentication/social-connections/overview). See a list of [supported values for `<provider>`](/docs/references/javascript/types/oauth#o-auth-provider).
27+
- `'saml'` (deprecated): **Deprecated in favor of `'enterprise_sso'`.** The user will be authenticated with their [SAML account](/docs/authentication/enterprise-connections/overview#saml).
28+
- `'enterprise_sso'`: The user will be authenticated either through SAML or OIDC depending on the configuration of their [enterprise SSO account](/docs/authentication/enterprise-connections/overview).
2929

3030
---
3131

3232
- `redirectUrl`
3333
- `string`
3434

35-
The full URL or path to the route that will complete the OAuth or SAML flow. Typically, this will be a simple `/sso-callback` route that calls `Clerk.handleRedirectCallback` or mounts the `<AuthenticateWithRedirectCallback />` component.
35+
The full URL or path that the OAuth provider should redirect to, on successful authorization on their part. Typically, this will be a simple `/sso-callback` route that calls [`Clerk.handleRedirectCallback`](/docs/references/javascript/clerk/handle-navigation#handle-redirect-callback) or mounts the [`<AuthenticateWithRedirectCallback />`](/docs/components/control/authenticate-with-callback) component. See the [custom flow](/docs/custom-flows/oauth-connections) for implementation details.
3636

3737
---
3838

3939
- `redirectUrlComplete`
4040
- `string`
4141

42-
The URL that the user will be redirected to, after successful authorization from the OAuth provider and Clerk sign in.
42+
The URL that the user will be redirected to once the sign-in is complete.
4343

4444
---
4545

4646
- `identifier`
4747
- `string | undefined`
4848

49-
Identifier to use for targeting an enterprise connection at sign-in.
49+
The ID used to target an enterprise connection during sign-in.
50+
51+
---
52+
53+
- `emailAddress`
54+
- `string | undefined`
55+
56+
The email address used to target an enterprise connection during sign-in.
57+
58+
---
59+
60+
- `legalAccepted`
61+
- `boolean | undefined`
62+
63+
A boolean indicating whether the user has agreed to the [legal compliance](/docs/authentication/configuration/legal-compliance) documents.
5064
</Properties>
5165

5266
### `authenticateWithMetamask()`

0 commit comments

Comments
 (0)