Before you can do anything else, a unique user token needs to be created and registered.
This token will be used to identify the user when adding, editing, or removing a card.
To create and register a user token, you need to:
- Send a request to your backend server with an identifier it can use to recognize your app user.
- Your backend server will obtain a user token on behalf of that user, and will pass it to you in response.
You can check here how the flow looks from your backend server perspective.
- Register the received user token to the SDK by calling the
From then on, operations on the SDK will be performed on behalf of that user.
|A valid user token.
SveaWalletClient is deprecated in version 3.1.0. Use new class