User
The authenticated user. Fields are gated by the access token's granted scopes;
fields not granted by the token resolve to null.
Anchor to FieldsFields
- avatar (String)
- email (String)
- emailVerified (Boolean)
- familyName (String)
- givenName (String)
- name (String)
- phone (String)
- phoneVerified (Boolean)
- sub (String)
- Anchor to avataravatar•String
URL of the user's avatar image. Requires the
avatarorprofilescope.- Anchor to emailemail•String
The user's email address. Requires
email(also granted byemail:verifiedoruser:manage).- Anchor to emailVerifiedemail•Boolean
Verified Whether the user's email has been verified. Requires
email(also granted byemail:verifiedoruser:manage).- Anchor to familyNamefamily•String
Name The user's family (last) name. Requires the
nameorprofilescope.- Anchor to givenNamegiven•String
Name The user's given (first) name. Requires the
nameorprofilescope.- Anchor to namename•String
The user's full name (given + family). Requires the
nameorprofilescope.- Anchor to phonephone•String
The user's phone number. Requires
phone(also granted byphone:verifiedoruser:manage). Returnsnullif the user has no phone on record.- Anchor to phoneVerifiedphone•Boolean
Verified Whether the user's phone number has been verified. Requires
phone(also granted byphone:verifiedoruser:manage). Returnsnullif the user has no phone on record.- •String
Stable subject identifier of the user. Always present when the token authenticates a user; not gated by a specific scope.
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