Commit 8afc1a0
committed
feat: use dynamic polling interval for device authentication
- Implement `getPollingIntervalMs` to retrieve the polling interval from the `DevicePrompt` state.
- Update `startPolling` to use the dynamic interval instead of a fixed constant.
- Replace the hardcoded `POLL_INTERVAL_MS` (15s) with a `DEFAULT_POLL_INTERVAL_SEC` (5s) as a fallback.
- Ensure the polling delay is converted correctly from seconds to milliseconds.1 parent 4c10aaf commit 8afc1a0
1 file changed
Lines changed: 11 additions & 2 deletions
File tree
- feature/auth/presentation/src/commonMain/kotlin/zed/rainxch/auth/presentation
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
| |||
414 | 423 | | |
415 | 424 | | |
416 | 425 | | |
417 | | - | |
| 426 | + | |
418 | 427 | | |
419 | 428 | | |
420 | 429 | | |
| |||
0 commit comments