SDK Explorer

Get a device token to perform social login.

Parameters
input
object
Required

Represents the input parameters for fetching a user.

deviceId
string
Required

Get the device id from SDK, and the deviceToken is bound with this device id.

idempotencyKey
string

The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.

We will generate one if you do not provide it.

Responses
Example
1const response = await client.createDeviceTokenForSocialLogin({
2  deviceId: 'device-id',
3})
4console.log(response.data)
ResponseChoose an example
1{
2  "data": {
3    "deviceToken": "eyJhbGciOiJS...-F8EFYDYjAxIUw",
4    "deviceEncryptionKey": "7LcOsm4lUAK2...7+kMGvqD1T6E="
5  }
6}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.