Fetch Tokens For User User Error
A user or client error that could occur during the execution of the mutation.
Anchor to FieldsFields
- code (FetchTokensForUserUserErrorErrorCode!)
- field ([String!]!)
- message (String!)
- Anchor to codecode•Fetch
Tokens For User User Error Error Code! non-null Error code associated with the error.
- Anchor to fieldfield•[String!]!non-null
Path to input field which caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- fetchTokensForUser (FetchTokensForUserPayload)
- •mutation
Fetch an OAuth Access and Refresh Token pair for a user. Exactly one of
ormust 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.- 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.
Arguments