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



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

Options for starting the Salesforce device authorization flow.

## Extends [#extends]

* [`OAuthRequestOptions`](/docs/auth/api/interfaces/OAuthRequestOptions)

## Properties [#properties]

| Property                                           | Modifier   | Type                                         | Description                                                              | Inherited from                                                                                                                                             |
| -------------------------------------------------- | ---------- | -------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="api-property-loginurl" /> `loginUrl`        | `readonly` | `string`                                     | Salesforce login or My Domain base URL used for device authorization.    | -                                                                                                                                                          |
| <a id="api-property-clientid" /> `clientId`        | `readonly` | `string`                                     | Connected App consumer key / OAuth client ID.                            | -                                                                                                                                                          |
| <a id="api-property-scope" /> `scope?`             | `readonly` | `string` \| readonly `string`\[]             | OAuth scopes requested by the device flow.                               | -                                                                                                                                                          |
| <a id="api-property-redirecturi" /> `redirectUri?` | `readonly` | `string`                                     | Optional redirect URI forwarded to Salesforce for the device flow.       | -                                                                                                                                                          |
| <a id="api-property-signal" /> `signal?`           | `readonly` | `AbortSignal`                                | Cancels this request.                                                    | [`OAuthRequestOptions`](/docs/auth/api/interfaces/OAuthRequestOptions).[`signal`](/docs/auth/api/interfaces/OAuthRequestOptions#api-property-signal)       |
| <a id="api-property-timeoutms" /> `timeoutMs?`     | `readonly` | `number`                                     | Per HTTP request. Default: 30 seconds.                                   | [`OAuthRequestOptions`](/docs/auth/api/interfaces/OAuthRequestOptions).[`timeoutMs`](/docs/auth/api/interfaces/OAuthRequestOptions#api-property-timeoutms) |
| <a id="api-property-fetch" /> `fetch?`             | `readonly` | (`input`, `init?`) => `Promise`\<`Response`> | Native fetch by default. Primarily useful for tests and custom runtimes. | [`OAuthRequestOptions`](/docs/auth/api/interfaces/OAuthRequestOptions).[`fetch`](/docs/auth/api/interfaces/OAuthRequestOptions#api-property-fetch)         |
