Skip to main content

Set Up Authentication

You need to obtain an authentication token to interact with the OpenSauced public API as an authenticated user.

The following steps outline how to obtain an authentication token from the hot.opensauced.pizza website:

  1. Click on your avatar in the top right corner of the page. This will open a dropdown menu.

    Avatar in top right corner of the page

  2. Click on the Print auth token option. Don't worry, this is a safe operation. The token is only printed to the console.

    Print Auth Token

  3. Copy the token that is printed to the console.

    Token printed to the console

  4. You can now use this token to make authenticated requests to the OpenSauced public API by including it in the Authorization header of your requests. For example:

    const response = await fetch(
    "https://api.opensauced.pizza/v2/auth/session",
    {
    method: "GET",
    headers: {
    Authorization: `Bearer ${token}`,
    },
    }
    );