Help users regain access to their accounts when they forget their PIN code.
Circle Wallets provide a comprehensive developer solution to storing, sending,
and spending Web3 digital currencies and NFTs. You or your users can manage
asset infrastructure. Circle provides a one-stop-shop experience with all the
tools and services to handle the complex parts, including security, transaction
monitoring, account recovery flows, and more.This guide outlines how users can regain access to their account using their
pre-set security questions in the event that they forget their original PIN
code.Users should be aware that the answers to their security questions are their
responsibility to remember. No additional parties can help users regain access
to a user-controlled wallet if their PIN code is lost and they cannot remember
the answers to their security questions.
Caution: If a user loses both their PIN code and the answers to their
Security Questions, they will be permanently locked out of their account, losing
access to all of their wallets and assets.
Next, you will need to acquire a session token. Make a request to
thePOST /users/token
using the previously created userId in Step 1. The userToken is a 60-minute
session token used to initiate requests requiring a user challenge (PIN code
entry). After 60 minutes, the session expires, and a new userToken must be
generated via the same endpoint.From this response, you will acquire the encryptionKey and userToken which
you should provide in the respective fields in the sample app. Additionally, you
will use the userToken in Step 2.
3. Initialize Account Recovery and Acquire a Challenge ID
Make a request to
POST /user/pin/restore
using the userToken returned from Step 1. This call returns a challengeId,
which is used with the Circle Programmable Wallet SDK to have the user reset
their PIN code.
Using the sample application, enter the userToken and secretKey returned
from Step 1. Enter the challengeId returned from Step 2.At this point, you should be ready to execute the account recovery workflow
through the Circle Programmable Wallet SDK. Once you’ve entered the required
fields indicated in Step 3, click Execute to continue.
The sample application takes you through the account recovery process by
answering your Security Questions. If answered correctly, the sample application
prompts you to enter a new PIN code.