# I got a token Error, what should i do?

When you come across a token error while trying to display a SharinPix album (or any SharinPix tab) it may be due to a configuration problem.

<figure><img src="/files/ZsxvrkRx4RrAjCB3fEfF" alt=""><figcaption></figcaption></figure>

To resolve the token error, you should verify:

* [That SharinPix has been properly configured on your Org](#verify-that-sharinpix-has-been-properly-configured)
* [That the current user's profile has been added to the Albums connected app](#verify-that-users-profile-has-been-added-to-the-albums-connected-app)
* [That SharinPix licenses have been assigned to the current user (this is not necessary for the trial)](#verify-that-the-sharinpix-licenses-has-been-assigned-to-the-user)

## Verify that SharinPix has been properly configured

The steps below outlines the checks to be performed to ensure that SharinPix has been properly configured:

* Go to **Setup** (1), find and select **Manage Connected Apps** (2) using the **Quick FInd** search bar
* On Manage Connected Apps, click on **Edit** (3) next to **Albums**

![](/files/eQMAIn2TeMzu50zptMxr)

* Next, for the section, **OAuth Policies**, ensure that the chosen value for **Permitted Users** is set to **Admin approved users are pre-authorized**. If it is not the case, go ahead and set the value to **Admin approved users are pre-authorized**
* Click **Save** when done

![](/files/ADWGsIwN1YwJwrG24VuO)

* Next, from the App Launcher find and select **SharinPix Settings**
* Once the SharinPix Settings tab is opened, verify if the second line, that is **Sharinpix -> Salesforce full API access**, is highlighted in green
* If not the case, click on the **Grant** button as shown below to grant access

![](/files/8MHOUDLwAaTKoUFeJ85u)

* You will then be directed to the following prompt. Click on **Allow**

![](/files/mvShvzLxlsYl89I2XJKO)

* Then, refresh the page on which the token error was initially showing up. You should see that the SharinPix Album (or any SharinPix tab) is now available

## Verify that user's profile has been added to the Albums connected app

You should also ensure that the current user's profile has been added to the **Album** connected app. To verify this, follow the steps below:

* From **Manage Connected App**, open **Albums**
* Once inside Albums, scroll down to **Profiles** and check if the profile of the user encountering the token error is present
* If not the case, click on **Manage Profiles** and add the user's profile
* Then, go back the page on which the token error was initially showing up. You should see that the SharinPix Album (or any SharinPix tab) is now available

## Verify that the SharinPix licenses has been assigned to the user

For this part, follow the steps below:

* From **Setup**, find and select **Installed Packages** using the **Quick Find** box
* Then, click **Manage Licenses** next to the SharinPix package labeled as **ImageManagementBySharinPix**
* Next, add or remove the licenses corresponding to specific users

{% hint style="info" %}
For details about the solutions provided in this article, you can check the following resources:

* SharinPix usage configuration on Salesforce : [Basic Setup](/getting-started/basic-setup/basic-setup-step-1-configure-the-salesforce-usage-of-sharinpix.md)
* Add user profiles to Album connected app: [Manage Profiles](/getting-started/basic-setup/basic-setup-step-1-configure-the-salesforce-usage-of-sharinpix.md#manage-profiles)
* Assign SharinPix licenses to user: [Assign SharinPix Licenses](/faqs/how-to-assign-sharinpix-licenses.md)

Still having the error? Contact us by clicking [here](https://www.sharinpix.com/#contact)!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharinpix.com/faqs/i-got-a-token-error-what-should-i-do.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
