Skip to content

Commit

Permalink
Update references to include legaAccepted and legalAcceptedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Nov 4, 2024
1 parent 70bd6bc commit d63161d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/references/javascript/sign-up/authenticate-with.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ function authenticateWithRedirect(params: AuthenticateWithRedirectParams): Promi
- `string | undefined`

Email address to use for targeting a SAML connection at sign-up.

---

- `legalAccepted?`
- `boolean`

The user has accepted the legal documents.
</Properties>

## `authenticateWithWeb3()`
Expand Down Expand Up @@ -89,6 +96,13 @@ function authenticateWithWeb3(params: AuthenticateWithWeb3Params): Promise<SignU
- `Web3Strategy`

The Web3 verification strategy.

---

- `legalAccepted?`
- `boolean`

The user has accepted the legal documents.
</Properties>

### `GenerateSignatureParams`
Expand All @@ -112,6 +126,13 @@ function authenticateWithWeb3(params: AuthenticateWithWeb3Params): Promise<SignU
- `Web3Provider`

The Web3 provider to generate the signature with.

---

- `legalAccepted?`
- `boolean`

The user has accepted the legal documents.
</Properties>

## `authenticateWithMetamask()`
Expand All @@ -131,6 +152,13 @@ function authenticateWithMetamask(
- `{[string]: any}`

Custom fields that will be attached to the [`User`](/docs/references/javascript/user/user) object post-signup.

---

- `legalAccepted?`
- `boolean`

The user has accepted the legal documents.
</Properties>

## `authenticateWithCoinbaseWallet()`
Expand All @@ -150,6 +178,13 @@ function authenticateWithCoinbaseWallet(
- `{[string]: any}`

Custom fields that will be attached to the [`User`](/docs/references/javascript/user/user) object post-signup.

---

- `legalAccepted?`
- `boolean`

The user has accepted the legal documents.
</Properties>

[signup-ref]: /docs/references/javascript/sign-up/sign-up
7 changes: 7 additions & 0 deletions docs/references/javascript/sign-up/sign-up.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ function create(params: SignUpCreateParams): Promise<SignUpResource>
- `boolean`

Transfer the user to a dedicated sign-up for an OAuth flow.

---

- `legalAccepted`
- `boolean`

The user has accepted the legal documents.
</Properties>

### `update()`
Expand Down
7 changes: 7 additions & 0 deletions docs/references/javascript/user/user.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ The ClerkJS SDK provides some helper [methods](#methods) on the `User` object to

---

- `legalAcceptedAt`
- `Date`

Date when the user accepted the legal documents. May be empty if express consent is not enabled.

---

- `lastSignInAt`
- `Date`

Expand Down

0 comments on commit d63161d

Please sign in to comment.