customerAccessTokenCreateWithSocialLogin
mutation
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
input param
Return
Customer AccessToken
Error Message
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
customerAccessTokenCreateWithSocialLogin
Code
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?