# 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="https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fl0jdiO7Sqr8P3j0uujcm%2F%20got%20a%20token%20Error%2C%20what%20should%20i%20do.png?alt=media&#x26;token=f294faf4-12c8-4690-88cd-8a5544754db2" 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**

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-0ecf4f0d3930e0fa4be75d9091f1cb07d09f8401%2Fscreenshot-docs.sharinpix.com-2020.07.16-14_04_46.png?alt=media)

* 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

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-33bd6aa8af5256e2cb0dcf9fe73de8327639a583%2Fscreenshot-spx-fsl-summer20-dev-ed.lightning.force.com-2020.07.16-14_09_36.png?alt=media)

* 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

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-0db4351f27fa9f16671ae7c4a6c2a3b308f8aa48%2Fscreenshot-docs.sharinpix.com-2020.07.16-14_35_51.png?alt=media)

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

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-7db368273592d0052170610fc5721c529aa5ba11%2Fscreenshot-docs.sharinpix.com-2020.07.16-14_39_06.png?alt=media)

* 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](https://app.gitbook.com/s/2putv2B9RAZpym8daOH2/basic-setup/basic-setup-step-1-configure-the-salesforce-usage-of-sharinpix)
* Add user profiles to Album connected app: [Manage Profiles](https://app.gitbook.com/s/2putv2B9RAZpym8daOH2/basic-setup/basic-setup-step-1-configure-the-salesforce-usage-of-sharinpix#manage-profiles)
* Assign SharinPix licenses to user: [Assign SharinPix Licenses](https://docs.sharinpix.com/faqs/how-to-assign-sharinpix-licenses)

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