- NodeJS
- NodeJS (server-auth)
Once you have created a wallet (or any other resource) with a user as an owner or signer, you can transact on that wallet with a valid user JWT. To do so using the NodeJS / Typescript SDK, the SDK will:Sending a transaction will look like this:
- Generate an ECDH P-256 keypair.
- Request a time-bound session key from the
/v1/wallets/authenticate
endpoint using the user’s JWT and the public key of the ECDH keypair. - Send a transaction to the Wallet API, signed with the time-bound session key.
user_jwt
on the authorization context when making requests to a resource.