# pollDeviceAuthorization (/docs/auth/api/functions/pollDeviceAuthorization)



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

```ts
function pollDeviceAuthorization(options): Promise<SalesforceOAuthSession>;
```

Performs one device-flow polling exchange. Handle authorization\_pending or
slow\_down and poll again.

## Parameters [#parameters]

| Parameter | Type                                                                 |
| --------- | -------------------------------------------------------------------- |
| `options` | [`DeviceTokenOptions`](/docs/auth/api/interfaces/DeviceTokenOptions) |

## Returns [#returns]

`Promise`\<[`SalesforceOAuthSession`](/docs/auth/api/interfaces/SalesforceOAuthSession)>
