---
title: "CustomerAccessTokenCreateWithSocialLoginInput"
description: "根据三方token创建CustomerAccessToken"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/inputs/customer-access-token-create-with-social-login-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/inputs/customer-access-token-create-with-social-login-input.md'
---
# CustomerAccessTokenCreateWithSocialLoginInput

根据三方token创建CustomerAccessToken

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CustomerAccessTokenCreateWithSocialLoginInput`

## Input Fields

* `token`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  第三方平台认证token

* `loginPlatformType`

  [String!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  三方登录配置的平台类型，支持
  * web
  * app

* `authUrl`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  第三方平台认证url，即在第三方平台申请appid时填入的回调url

* `loginChannel`

  [String!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  第三方登录渠道，支持
  * apple
  * facebook
  * google
  * line
  * tiktok

* `tokenType`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  第三方token类型，jwtToken/oauthCode

## Schema Definition

```graphql
input CustomerAccessTokenCreateWithSocialLoginInput { 
	token: String
	loginPlatformType: String!
	authUrl: String
	loginChannel: String!
	tokenType: String 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/mutations/customer-access-token-create-with-social-login.md).customerAccessTokenCreateWithSocialLogin

  根据三方token创建CustomerAccessToken

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

