Sign Up

3. Send a request to a secure endpoint

Following the previous tutorial "Creating an Authentication User", we will now proceed to send a request to a secure endpoint using the generated authentication token.

  1. Having obtained your authentication token, initiate a POST request to the specific endpoint you created earlier. Ensure that the request body matches the Model you previously defined.
  2. For proper authentication, attach your authentication token using the "Bearer Token" Authorization.
  3. Upon successful execution, the response will include the same request body, along with additional fields such as _id, createdAt, and updatedAt. These fields represent data store record information, confirming that the object has been successfully saved to the data store.
  4. To verify the data, navigate to your Model's data store within Twidget's web application. You will be able to observe the newly added data from your request within the data store interface.

Related Topics