1. Go to Setup > Integration > Manage Integrations > New
2. Create an integration record. (For more information, see
Create Integration Records for Applications to Use TBA.)
a. In the Name field, enter a name for the integration record.
b. In the State field, select Enabled.
c. Check the Token-Based Authentication box.
d. Check the TBA: Authorization Flow box.
e. In the Callback URL field, enter:
http://localhost:7777/tba.
f. Clear the Authorization Code Grant box.
g. Check the User Credentials box.
3. Save the integration. Be sure to save the consumer key/secret before closing the page.
4. Copy and paste the consumer key/secret in the .env file.
ALSO IMPORTANT: the key/secret information you put in the .env file
must be for the integration record that you've just created AND NOT FOR THE ACCESS TOKEN FOR YOUR ACCOUNT. If you attempt to use your the key/secret that you have manually created through the NetSuite UI (using the
Manage Access Tokens link), then this will also cause this error.