---
title: "CustomerAccessTokenCreateWithSocialLoginInput"
description: "Creates a customer access token using a third-party authentication token."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-access-token-create-with-social-login-input'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-access-token-create-with-social-login-input.md'
---
# CustomerAccessTokenCreateWithSocialLoginInput

Creates a customer access token using a third-party authentication token.

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

## Type Signature

`CustomerAccessTokenCreateWithSocialLoginInput`

## Input Fields

* `loginChannel`

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

  The channel of the third-party login. Possible values:
  * apple
  * facebook
  * google
  * line
  * tiktok

* `tokenType`

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

  Third-party token type. Possible values:
  * jwtToken
  * oauthCode

* `token`

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

  Third-party authentication token

* `loginPlatformType`

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

  The platform type of the third-party login. Possible values:
  * web
  * app

* `authUrl`

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

  Third-party authentication URL

## Schema Definition

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

## Argument from

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

  根据三方token创建CustomerAccessToken

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

