Attaching a User Account
Switching library to the full state mode
Login
To set the customer's wallet you should create the account configuration first. Next use the following routine to attach the user account and switch the client object to the full state:
Parameters
account
- an account configuration with credentials and other parameters.
Return value
No return value is required but you must wait until login is completed before the next library interaction.
When login is finished the client will switch into the full mode state and all of the public routines are avialable fo use.
Logout
To set the customer's wallet create the account configuration first. Next, use the following routine to attach the user account and switch the client object to the full state:
Return value
No return value is required but you must wait logout completed before the next library interaction.
When logout is complete the client switches to the account-less state.
Example
The client configuration clientConfig
defined in this example
Is Account is Attached
Check library is in full mode:
Return value
true
if account is present and the library is working in full mode or false
otherwise.
Example
Last updated