Finally, store the data and receive a token in return.
javascriptCopy codeconst formData = new FormData();
formData.append('data', 'your_data');
formData.append('temporaryTokenSpace', tempToken);
await axios.post(`${process.env.BASE_URL}/data-token/exchange-data-for-token`, formData, {
headers: { 'X-DPT-AUTHORIZATION': fullAuthToken }
});
Leave A Comment