fetch Tokens For User
Fetch an OAuth Access and Refresh Token pair for a user. Exactly one of
or must be provided.
When is provided, the user's existing connection with the client
is verified and tokens are issued for the consented scope.
When is provided — a signed JWT from a Sign in with Shop flow
granting delegated consent from a merchant's buyer connection to this partner —
the token is verified, a delegated user connection is established, and tokens
are issued for the delegated scope.
Arguments
- consentToken (String)
- publicId (String)
- Anchor to consentTokenconsent•String
Token Signed JWT consent token from a Sign in with Shop flow granting delegated access. Required when not providing a public ID.
- Anchor to publicIdpublic•String
Id The public ID of the user. Required when not providing a consent token.
- accessToken (String)
- expiresIn (Int)
- publicId (String)
- refreshToken (String)
- scope (String)
- tokenType (String)
- userErrors ([FetchTokensForUserUserError!]!)
- Anchor to accessTokenaccess•String
Token AccessToken for Users API.
- Anchor to expiresInexpires•Int
In Access Token TTL in Seconds.
- Anchor to publicIdpublic•String
Id The public ID of the user.
- Anchor to refreshTokenrefresh•String
Token RefreshToken for Partners API used to get new AccessTokens.
- Anchor to scopescope•String
The scope of the access token as issued (RFC 6749 §5.1).
- Anchor to tokenTypetoken•String
Type Token type, always Bearer.
- Anchor to userErrorsuser•[Fetch
Errors Tokens For User User Error!]! non-null List of errors that occured while executing the mutation.