Defined in: account-kit/rn-signer/src/client.ts:67
BaseSignerClient<ExportWalletParams,string>
new RNSignerClient(params): RNSignerClient;Defined in: account-kit/rn-signer/src/client.ts:79
Parameters
| Parameter | Type |
|---|---|
| { |
| | { |
|
|
|
|
|
|
Returns
RNSignerClient
Overrides
BaseSignerClient<
ExportWalletParams,
string
>.constructor| Property | Type | Description |
|---|---|---|
( | Initiates the setup of a new MFA factor for the current user. Mfa will need to be verified before it is active. Throws If no user is authenticated Throws If an unsupported factor type is provided | |
( | Adds an OAuth provider for the authenticated user using the provided parameters. Throws an error if the user is not authenticated. Throws Throws if the user is not authenticated. | |
( | Handles the creation of authenticators using WebAuthn attestation and the provided options. Requires the user to be authenticated. Throws If the user is not authenticated | |
| ‐ | |
( | This will add additional members to an existing multi-sig account | |
( | Creates an API key that can take any action on behalf of the current user. (Note that this method is currently experimental and is subject to change.) Throws If there is no authenticated user or the API key creation fails. | |
( | This will create a multi-owner account with the current user and additional specified signers | |
( | This will remove members from an existing multi-sig account | |
( | This will sign on behalf of the multi-owner org, without doing any transformations on the message. For SignMessage or SignTypedData, the caller should hash the message before calling this method and pass that result here. | |
() => | Retrieves the list of MFA factors configured for the current user. Throws If no user is authenticated | |
( | Turnkey requires the nonce in the id token to be in this format. | |
( | Returns the authentication url for the selected OAuth Proivder Example | |
() => | Retrieves the status of the passkey for the current user. Requires the user to be authenticated. Throws If the user is not authenticated | |
() => | Returns the current user or null if no user is set. | |
() => | Asynchronously fetches and sets the OAuth configuration. | |
( | Initiates an OTP (One-Time Password) verification process for a user contact. Throws When no user is currently authenticated | |
() => | Retrieves the list of authentication methods for the current user. Throws If the user is not authenticated | |
( | Looks up information based on an access key. | |
( | Looks up information based on an email address. | |
( | Looks up information based on a phone number. | |
( | Asynchronously handles the authentication process using WebAuthn Stamper. If a user is provided, sets the user and returns it. Otherwise, retrieves the current user and initializes the WebAuthn stamper. | |
| ‐ | |
| ‐ | |
< | Listen to events emitted by the client | |
< | ‐ | |
() => | Removes the email for the authenticated user, disallowing them from login with that email. Throws If the user is not authenticated | |
( | Removes existing MFA factors by ID. Throws If no user is authenticated | |
( | Deletes a specified OAuth provider for the authenticated user. Throws If the user is not authenticated | |
( | Removes a passkey authenticator from the user's account. Throws If the user is not authenticated. | |
() => | Removes the phone number for the authenticated user, disallowing them from login with that phone number. Throws If the user is not authenticated | |
< | Sends a POST request to the given signer route with the specified body and returns the response. Not intended to be used directly, use the specific methods instead on the client instead. | |
| ‐ | |
| ‐ | |
( | Updates the phone number for the authenticated user, allowing them to login with that
phone number. Must be called after calling Throws If the user is not authenticated | |
( | This will sign a message with the user's private key, without doing any transformations on the message. For SignMessage or SignTypedData, the caller should hash the message before calling this method and pass that result here. | |
() => | Generates a stamped getOrganization request for the current user. Throws if no user is authenticated | |
() => | Generates a stamped whoami request for the current user. This request can then be used to call /signer/v1/whoami to get the user information. This is useful if you want to get the user information in a different context like a server. You can pass the stamped request to the server and then call our API to get the user information. Using this stamp is the most trusted way to get the user information since a stamp can only belong to the user who created it. Throws if no organization ID is provided | |
| ‐ | |
( | Validates multiple MFA factors using the provided encrypted payload and MFA codes. Throws If no credential bundle is returned from the server | |
( | Verifies a newly created MFA factor to complete the setup process. Throws If no user is authenticated | |
( | Retrieves the current user or fetches the user information if not already available. Throws if no organization ID is provided when there is no current user |
Get Signature
get protected user(): undefined | User;Defined in: account-kit/signer/dist/types/client/base.d.ts:43
Returns
undefined | User
Set Signature
set protected user(user): void;Defined in: account-kit/signer/dist/types/client/base.d.ts:44
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
void
Inherited from
BaseSignerClient.user;completeAuthWithBundle(params): Promise<User>;Defined in: account-kit/rn-signer/src/client.ts:182
Parameters
| Parameter | Type |
|---|---|
| { |
|
|
|
|
|
|
| keyof |
|
|
|
|
Returns
Promise<User>
Overrides
BaseSignerClient.completeAuthWithBundle;createAccount(params): Promise<SignupResponse>;Defined in: account-kit/signer/dist/types/client/base.d.ts:57
Authenticates the user by either email or passkey account creation flow. Emits events during the process.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| The parameters for creating an account, including the type (email or passkey) and additional details. |
Returns
Promise<SignupResponse>
A promise that resolves with the response object containing the account creation result.
Inherited from
BaseSignerClient.createAccount;disconnect(): Promise<void>;Defined in: account-kit/rn-signer/src/client.ts:296
Returns
Promise<void>
Overrides
BaseSignerClient.disconnect;exportWallet(params?): Promise<string>;Defined in: account-kit/rn-signer/src/client.ts:309
Exports the wallet and returns the decrypted private key or seed phrase.
Parameters
| Parameter | Type | Description |
|---|---|---|
| exportWallet parameters |
Returns
Promise<string>
The decrypted private key or seed phrase
Throws
If the user is not authenticated or export fails
Overrides
BaseSignerClient.exportWallet;protected getOauthConfig(): Promise<OauthConfig>;Defined in: account-kit/rn-signer/src/client.ts:464
Returns
Promise<OauthConfig>
Overrides
BaseSignerClient.getOauthConfig;protected getWebAuthnAttestation(options?, userDetails?): Promise<GetWebAuthnAttestationResult & object>;Defined in: account-kit/rn-signer/src/client.ts:433
Parameters
| Parameter | Type |
|---|---|
|
|
| { |
|
|
Returns
Promise<GetWebAuthnAttestationResult & object>
Overrides
BaseSignerClient.getWebAuthnAttestation;initEmailAuth(params): Promise<{
multiFactors?: MfaFactor[];
orgId: string;
otpId?: string;
}>;Defined in: account-kit/rn-signer/src/client.ts:130
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<{
multiFactors?: MfaFactor[];
orgId: string;
otpId?: string;
}>
Overrides
BaseSignerClient.initEmailAuth;protected initSessionStamper(): Promise<string>;Defined in: account-kit/rn-signer/src/client.ts:476
Initializes the session stamper and returns its public key.
Returns
Promise<string>
Overrides
BaseSignerClient.initSessionStamper;initSmsAuth(params): Promise<{
orgId: string;
otpId?: string;
}>;Defined in: account-kit/rn-signer/src/client.ts:155
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<{
orgId: string;
otpId?: string;
}>
Overrides
BaseSignerClient.initSmsAuth;protected initWebauthnStamper(user, options?): Promise<void>;Defined in: account-kit/rn-signer/src/client.ts:495
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
Returns
Promise<void>
Overrides
BaseSignerClient.initWebauthnStamper;oauthWithPopup(_args): Promise<User>;Defined in: account-kit/rn-signer/src/client.ts:290
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<User>
Overrides
BaseSignerClient.oauthWithPopup;oauthWithRedirect(args): Promise<User | IdTokenOnly>;Defined in: account-kit/rn-signer/src/client.ts:216
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<User | IdTokenOnly>
Overrides
BaseSignerClient.oauthWithRedirect;Call Signature
setEmail(email): Promise<string>;Defined in: account-kit/signer/dist/types/client/base.d.ts:116
Sets the email for the authenticated user, allowing them to login with that email.
Deprecated
You must contact Alchemy to enable this feature for your team, as there are important security considerations. In particular, you must not call this without first validating that the user owns this email account. Recommended to use the email verification flow instead.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| The email to set for the user |
Returns
Promise<string>
A promise that resolves to the updated email
Throws
If the user is not authenticated
Inherited from
BaseSignerClient.setEmail;Call Signature
setEmail(otp): Promise<string>;Defined in: account-kit/signer/dist/types/client/base.d.ts:125
Sets the email for the authenticated user, allowing them to login with that
email. Must be called after calling initOtp with the email.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| The OTP verification object including the OTP ID and OTP code |
Returns
Promise<string>
A promise that resolves to the updated email
Throws
If the user is not authenticated
Inherited from
BaseSignerClient.setEmail;protected setStamper(stamper): void;Defined in: account-kit/signer/dist/types/client/base.d.ts:50
Sets the stamper of the TurnkeyClient.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| the stamper function to set for the TurnkeyClient |
Returns
void
Inherited from
BaseSignerClient.setStamper;submitJwt(args): Promise<JwtResponse>;Defined in: account-kit/rn-signer/src/client.ts:168
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<JwtResponse>
Overrides
BaseSignerClient.submitJwt;submitOtpCode(args): Promise<SubmitOtpCodeResponse>;Defined in: account-kit/rn-signer/src/client.ts:93
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<SubmitOtpCodeResponse>
Overrides
BaseSignerClient.submitOtpCode;targetPublicKey(): Promise<string>;Defined in: account-kit/rn-signer/src/client.ts:429
Returns
Promise<string>
Overrides
BaseSignerClient.targetPublicKey;