Anchor to fetchCustomDataTokenForUserfetch
mutationfetch Custom Data Token For User
Fetch an OAuth Access and Refresh Token pair for the Shop Users API to read or write metafields after user's presence interaction ends.
If a user has used Sign in with Shop with your App client, you may retreive tokens to read / write your own metafields on a user.
Anchor to Arguments
Arguments
- email (String!)
- through (String)
- Anchor to emailemail•String!required
The email of the buyer for whom you need an Access token.
- Anchor to throughthrough•String
Private to Shopify Internal clients. Allows a storefront to be passed in by its myshopify domain.
Was this section helpful?
- accessToken (String)
- expiresIn (Int)
- refreshToken (String)
- tokenType (String)
- userErrors ([UserError!]!)
- Anchor to accessTokenaccess•String
Token New AccessToken for Users API.
- Anchor to expiresInexpires•Int
In Access Token TTL in Seconds.
- Anchor to refreshTokenrefresh•String
Token New RefreshToken for Users API used to get new AccessTokens.
- Anchor to tokenTypetoken•String
Type New RefreshToken for Users API used to get new AccessTokens.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null List of errors that occured while executing the mutation.
Was this section helpful?