An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Creates a customer access token using a third-party authentication token.
Arguments
Return
customerAccessToken ● CustomerAccessToken
Customer AccessToken
More
customerUserErrors ● [CustomerUserError!]!non-null
Error Message
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
customerAccessTokenCreateWithSocialLogin
mutation customerAccessTokenCreateWithSocialLogin {
customerAccessTokenCreateWithSocialLogin(input: {loginPlatformType: "web",authUrl: "https://demo.myshopline.com/user/signIn",loginChannel: "google",tokenType: "oauth2",token:"demo token"}) {
customerAccessToken {
accessToken
expiresAt
}
customerUserErrors {
code
field
message
}
}
}
Response
{
"data": {
"customerAccessTokenCreateWithSocialLogin": {
"customerAccessToken": {
"accessToken": "demo accessToken",
"expiresAt": "2024-11-26T12:22:32.936Z"
},
"customerUserErrors": []
}
}
}
Was this article helpful to you?