-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5806921
commit 8c0b432
Showing
13 changed files
with
105 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,24 @@ function banUser: (userId: string) => Promise<User>; | |
## Example | ||
|
||
```tsx {13} | ||
const userId = 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56'; | ||
const userId = 'user_123; | ||
|
||
const response = await clerkClient.users.banUser(userId); | ||
|
||
console.log(response); | ||
/* | ||
_User { | ||
id: 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56', | ||
id: 'user_123, | ||
passwordEnabled: false, | ||
totpEnabled: false, | ||
backupCodeEnabled: false, | ||
twoFactorEnabled: false, | ||
banned: true, | ||
createdAt: 1694181111181, | ||
updatedAt: 1708101775581, | ||
imageUrl: 'https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZ29vZ2xlL2ltZ18yVjdKSkhvdXlnbDNLRXRaUjlRRlFNbnVDU2cuanBlZyJ9', | ||
imageUrl: 'https://img.clerk.com/eyJ...', | ||
hasImage: true, | ||
primaryEmailAddressId: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
primaryEmailAddressId: 'idn_123', | ||
primaryPhoneNumberId: null, | ||
primaryWeb3WalletId: null, | ||
lastSignInAt: 1708101739595, | ||
|
@@ -52,7 +52,7 @@ _User { | |
unsafeMetadata: {}, | ||
emailAddresses: [ | ||
_EmailAddress { | ||
id: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
id: 'idn_123', | ||
emailAddress: '[email protected]', | ||
verification: [_Verification], | ||
linkedTo: [Array] | ||
|
@@ -62,7 +62,7 @@ _User { | |
web3Wallets: [], | ||
externalAccounts: [ | ||
_ExternalAccount { | ||
id: 'idn_2V7JJ4xpXyj0mazg3lsLYOUit9t', | ||
id: 'idn_123', | ||
provider: undefined, | ||
identificationId: undefined, | ||
externalId: undefined, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,24 @@ function getUser: (userId: string) => Promise<User>; | |
## Example | ||
|
||
```tsx | ||
const userId = 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56'; | ||
const userId = 'user_123'; | ||
|
||
const response = await clerkClient.users.getUser(userId); | ||
|
||
console.log(response); | ||
/* | ||
_User { | ||
id: 'user_2cSSCzV7948rhPJMsY601tXsEU4', | ||
id: 'user_123', | ||
passwordEnabled: true, | ||
totpEnabled: false, | ||
backupCodeEnabled: false, | ||
twoFactorEnabled: false, | ||
banned: false, | ||
createdAt: 1708103362688, | ||
updatedAt: 1708103362701, | ||
imageUrl: 'https://img.clerk.com/eyJ0eXBlIjoiZGVmYXVsdCIsImlpZCI6Imluc18yVjdKRFdyclJwRmZFZTlqQUM2dWpSMG8xSlQiLCJyaWQiOiJ1c2VyXzJjU1NDelY3OTQ4cmhQSk1zWTYwMXRYc0VVNCIsImluaXRpYWxzIjoiVFUifQ', | ||
imageUrl: 'https://img.clerk.com/eyJ...', | ||
hasImage: false, | ||
primaryEmailAddressId: 'idn_2cSSCuFhU35F5u5Labwtmj7xU6B', | ||
primaryEmailAddressId: 'idn_123', | ||
primaryPhoneNumberId: null, | ||
primaryWeb3WalletId: null, | ||
lastSignInAt: null, | ||
|
@@ -52,7 +52,7 @@ _User { | |
unsafeMetadata: {}, | ||
emailAddresses: [ | ||
_EmailAddress { | ||
id: 'idn_2cSSCuFhU35F5u5Labwtmj7xU6B', | ||
id: 'idn_123', | ||
emailAddress: '[email protected]', | ||
verification: [_Verification], | ||
linkedTo: [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,24 +24,24 @@ function lockUser: (userId: string) => Promise<User>; | |
## Example | ||
|
||
```tsx {13} | ||
const userId = 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56'; | ||
const userId = 'user_123'; | ||
|
||
const response = await clerkClient.users.lockUser(userId); | ||
|
||
console.log(response); | ||
/* | ||
_User { | ||
id: 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56', | ||
id: 'user_123', | ||
passwordEnabled: false, | ||
totpEnabled: false, | ||
backupCodeEnabled: false, | ||
twoFactorEnabled: false, | ||
banned: false, | ||
createdAt: 1694181111181, | ||
updatedAt: 1708102548373, | ||
imageUrl: 'https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZ29vZ2xlL2ltZ18yVjdKSkhvdXlnbDNLRXRaUjlRRlFNbnVDU2cuanBlZyJ9', | ||
imageUrl: 'https://img.clerk.com/eyJ...', | ||
hasImage: true, | ||
primaryEmailAddressId: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
primaryEmailAddressId: 'idn_123', | ||
primaryPhoneNumberId: null, | ||
primaryWeb3WalletId: null, | ||
lastSignInAt: 1708101739595, | ||
|
@@ -54,7 +54,7 @@ _User { | |
unsafeMetadata: {}, | ||
emailAddresses: [ | ||
_EmailAddress { | ||
id: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
id: 'idn_123', | ||
emailAddress: '[email protected]', | ||
verification: [_Verification], | ||
linkedTo: [Array] | ||
|
@@ -64,7 +64,7 @@ _User { | |
web3Wallets: [], | ||
externalAccounts: [ | ||
_ExternalAccount { | ||
id: 'idn_2V7JJ4xpXyj0mazg3lsLYOUit9t', | ||
id: 'idn_123', | ||
provider: undefined, | ||
identificationId: undefined, | ||
externalId: undefined, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,24 @@ function unbanUser: (userId: string) => Promise<User>; | |
## Example | ||
|
||
```tsx {13} | ||
const userId = 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56'; | ||
const userId = 'user_123'; | ||
|
||
const response = await clerkClient.users.unbanUser(userId); | ||
|
||
console.log(response); | ||
/* | ||
_User { | ||
id: 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56', | ||
id: 'user_123', | ||
passwordEnabled: false, | ||
totpEnabled: false, | ||
backupCodeEnabled: false, | ||
twoFactorEnabled: false, | ||
banned: false, | ||
createdAt: 1694181111181, | ||
updatedAt: 1708102137929, | ||
imageUrl: 'https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZ29vZ2xlL2ltZ18yVjdKSkhvdXlnbDNLRXRaUjlRRlFNbnVDU2cuanBlZyJ9', | ||
imageUrl: 'https://img.clerk.com/eyJ...', | ||
hasImage: true, | ||
primaryEmailAddressId: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
primaryEmailAddressId: 'idn_123', | ||
primaryPhoneNumberId: null, | ||
primaryWeb3WalletId: null, | ||
lastSignInAt: 1708101739595, | ||
|
@@ -52,7 +52,7 @@ _User { | |
unsafeMetadata: {}, | ||
emailAddresses: [ | ||
_EmailAddress { | ||
id: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
id: 'idn_123', | ||
emailAddress: '[email protected]', | ||
verification: [_Verification], | ||
linkedTo: [Array] | ||
|
@@ -62,7 +62,7 @@ _User { | |
web3Wallets: [], | ||
externalAccounts: [ | ||
_ExternalAccount { | ||
id: 'idn_2V7JJ4xpXyj0mazg3lsLYOUit9t', | ||
id: 'idn_123', | ||
provider: undefined, | ||
identificationId: undefined, | ||
externalId: undefined, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,24 @@ function unlockUser: (userId: string) => Promise<User>; | |
## Example | ||
|
||
```tsx {13} | ||
const userId = 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56'; | ||
const userId = 'user_123'; | ||
|
||
const response = await clerkClient.users.unlockUser(userId); | ||
|
||
console.log(response); | ||
/* | ||
_User { | ||
id: 'user_2V7JJKmoA9HqzHhfMqK5cpgLl56', | ||
id: 'user_123', | ||
passwordEnabled: false, | ||
totpEnabled: false, | ||
backupCodeEnabled: false, | ||
twoFactorEnabled: false, | ||
banned: false, | ||
createdAt: 1694181111181, | ||
updatedAt: 1708102548373, | ||
imageUrl: 'https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZ29vZ2xlL2ltZ18yVjdKSkhvdXlnbDNLRXRaUjlRRlFNbnVDU2cuanBlZyJ9', | ||
imageUrl: 'https://img.clerk.com/eyJ...', | ||
hasImage: true, | ||
primaryEmailAddressId: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
primaryEmailAddressId: 'idn_123, | ||
primaryPhoneNumberId: null, | ||
primaryWeb3WalletId: null, | ||
lastSignInAt: 1708101739595, | ||
|
@@ -52,7 +52,7 @@ _User { | |
unsafeMetadata: {}, | ||
emailAddresses: [ | ||
_EmailAddress { | ||
id: 'idn_2V7JJ2R3O7KWHjCmUuEOJESHlPz', | ||
id: 'idn_123, | ||
emailAddress: '[email protected]', | ||
verification: [_Verification], | ||
linkedTo: [Array] | ||
|
@@ -62,7 +62,7 @@ _User { | |
web3Wallets: [], | ||
externalAccounts: [ | ||
_ExternalAccount { | ||
id: 'idn_2V7JJ4xpXyj0mazg3lsLYOUit9t', | ||
id: 'idn_123', | ||
provider: undefined, | ||
identificationId: undefined, | ||
externalId: undefined, | ||
|
Oops, something went wrong.