We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4f6b4e commit 2d00ab8Copy full SHA for 2d00ab8
packages/cli/src/auth/device-flow.ts
@@ -2,6 +2,7 @@ import { blue, green } from 'colorette';
2
import * as childProcess from 'node:child_process';
3
import { logger } from '@redocly/openapi-core';
4
import { ReuniteApiClient } from '../reunite/api/api-client.js';
5
+import { DEFAULT_FETCH_TIMEOUT } from '../utils/fetch-with-timeout.js';
6
7
export type AuthToken = {
8
access_token: string;
@@ -167,6 +168,7 @@ export class RedoclyOAuthDeviceFlow {
167
168
body: body ? JSON.stringify(body) : body,
169
method,
170
headers: { 'Content-Type': 'application/json', ...headers },
171
+ timeout: DEFAULT_FETCH_TIMEOUT,
172
});
173
if (response.status === 204) {
174
return { success: true };
0 commit comments