---
title: FetchTokensForUserUserErrorErrorCode - Shop Partners API
description: Possible error codes that can be returned by FetchTokensForUserUserError.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/enums/FetchTokensForUserUserErrorErrorCode
  md: https://shopify.dev/docs/api/shop-partners/latest/enums/FetchTokensForUserUserErrorErrorCode.md
---

# Fetch​Tokens​For​User​User​Error​Error​Code

enum

Possible error codes that can be returned by FetchTokensForUserUserError.

## Valid values

* INVALID\_​TOKEN

  Consent token is invalid.

* NO\_​CONSENT

  User has not consented to the requested scope.

* NO\_​USER

  No user found.

***

## Fields

* [Fetch​Tokens​For​User​User​Error.code](https://shopify.dev/docs/api/shop-partners/latest/objects/FetchTokensForUserUserError#field-FetchTokensForUserUserError.fields.code)

  OBJECT

  A user or client error that could occur during the execution of the `fetchTokensForUser` mutation.

***

## Map

### Fields with this enum

* [Fetch​Tokens​For​User​User​Error.code](https://shopify.dev/docs/api/shop-partners/latest/objects/FetchTokensForUserUserError#field-FetchTokensForUserUserError.fields.code)