# [JWT] Auth via device ID Authenticates a user via a particular device ID. To enable silent authentication, use the instruction. Endpoint: POST /login/device/{device_type} Version: v1 ## Path parameters: - `device_type` (string, required) Type of the device. Enum: "android", "ios", "macos", "windows" ## Query parameters: - `projectId` (string, required) Login project ID from Publisher Account. - `payload` (string) Your custom data. The value of the parameter will be returned in the payload claim of the user JWT. Recommended maximum length less than 500 characters. Note, that this parameter is only available if you use a custom user data storage. - `with_logout` (string) Shows whether to deactivate the existing user JWT values and activate the one generated by this call. Can have the following values: * 1 to deactivate the existing values and activate a new one, * 0 to keep the existing values activated. ## Request fields (application/json): - `device` (string, required) Manufacturer and model name of the device. Example: "ONEPLUS A6003" - `device_id` (string, required) Device ID: * For Android, it is an [ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID) constant. * For iOS, it is an [identifierForVendor](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor?language=objc) property. Example: "1AF516EFACD646F6" ## Response 200 fields (application/json): - `token` (string, required) Xsolla Login user JWT. ## Response 400 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 401 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 404 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 422 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 429 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information.