# DeviceTokenOptions (/docs/auth/api/interfaces/DeviceTokenOptions)



[@kysoql/auth](/docs/auth/api) / DeviceTokenOptions

Options for polling Salesforce for completion of device authorization.

## Extends [#extends]

* `TokenEndpointOptions`

## Properties [#properties]

| Property                                                       | Modifier   | Type                                                               | Description                                                                | Inherited from                           |
| -------------------------------------------------------------- | ---------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------- | ---------------------------------------- |
| <a id="api-property-clientid" /> `clientId`                    | `readonly` | `string`                                                           | Connected App consumer key / OAuth client ID.                              | -                                        |
| <a id="api-property-devicecode" /> `deviceCode`                | `readonly` | `string`                                                           | Device code returned by `startDeviceAuthorization`.                        | -                                        |
| <a id="api-property-loginurl" /> `loginUrl`                    | `readonly` | `string`                                                           | Salesforce login or My Domain base URL for the token endpoint.             | `TokenEndpointOptions.loginUrl`          |
| <a id="api-property-refreshtokenstore" /> `refreshTokenStore?` | `readonly` | [`RefreshTokenStore`](/docs/auth/api/interfaces/RefreshTokenStore) | Persist a newly issued/rotated refresh token before returning the session. | `TokenEndpointOptions.refreshTokenStore` |
| <a id="api-property-signal" /> `signal?`                       | `readonly` | `AbortSignal`                                                      | Cancels this request.                                                      | `TokenEndpointOptions.signal`            |
| <a id="api-property-timeoutms" /> `timeoutMs?`                 | `readonly` | `number`                                                           | Per HTTP request. Default: 30 seconds.                                     | `TokenEndpointOptions.timeoutMs`         |
| <a id="api-property-fetch" /> `fetch?`                         | `readonly` | (`input`, `init?`) => `Promise`\<`Response`>                       | Native fetch by default. Primarily useful for tests and custom runtimes.   | `TokenEndpointOptions.fetch`             |
