{"record":{"id":"1d303b7857276b54","repo":"cline/cline","slug":"workos-device-authorization-timed-out","errorCode":null,"errorMessage":"WorkOS device authorization timed out","messagePattern":"WorkOS device authorization timed out","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/auth/cline.ts","lineNumber":418,"sourceCode":"\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tthrow new ClineOAuthTokenError(\n\t\t\t\t\t`WorkOS token polling failed: ${response.status}${payload.error_description ? ` - ${payload.error_description}` : \"\"}`,\n\t\t\t\t\t{\n\t\t\t\t\t\tstatus: response.status,\n\t\t\t\t\t\terrorCode: payload.error,\n\t\t\t\t\t\trequestId: response.headers.get(\"x-request-id\") ?? undefined,\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\toptions.onProgress?.(\"Waiting for browser authentication confirmation...\");\n\t}\n\n\tthrow new Error(\"WorkOS device authorization timed out\");\n}\n\nasync function registerWorkOSTokens(\n\tworkosTokens: WorkOSTokenSuccess,\n\toptions: ClineOAuthProviderOptions,\n\tprovider?: string,\n): Promise<ClineOAuthCredentials> {\n\tconst body = {\n\t\taccessToken: workosTokens.accessToken,\n\t\trefreshToken: workosTokens.refreshToken,\n\t};\n\n\tconst response = await fetch(\n\t\tresolveUrl(options.apiBaseUrl, DEFAULT_AUTH_ENDPOINTS.register),\n\t\t{\n\t\t\tmethod: \"POST\",\n\t\t\theaders: {\n\t\t\t\t\"Content-Type\": \"application/json\",","sourceCodeStart":400,"sourceCodeEnd":436,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/auth/cline.ts#L400-L436","documentation":"Error \"WorkOS device authorization timed out\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/auth/cline.ts:418 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"491b30b806fdb8c93513f821f2b87d63a61542f5","analyzedAt":"2026-08-25T13:45:22.367Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}