Start by importing the necessary classes from the SDK in your JavaScript file:
import Wallet from 'didpass-wallet-sdk';
Creating a Wallet Instance
Create a new instance of the Wallet class using the create static method. Provide the authServerBaseUrl and a storage instance implementing the IStorage interface:
const authServerBaseUrl: string = "YOUR_AUTH_SERVER_BASE_URL";
const storage: IStorage = // Your implementation of the IStorage interface
const wallet: Wallet = Wallet.create(authServerBaseUrl, storage);
Here is an example implementation of IStorage written in React Native