diegosouzapw/OmniRoute · error
Failed to start device authorization: ${error}
Error message
Failed to start device authorization: ${error} What it means
Error "Failed to start device authorization: ${error}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/oauth/services/kiro.ts:80
) {
assertValidAwsRegion(region);
const endpoint = `https://oidc.${region}.amazonaws.com/device_authorization`;
const response = await fetch(endpoint, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
clientId,
clientSecret,
startUrl,
}),
});
if (!response.ok) {
const error = await response.text();
throw new Error(`Failed to start device authorization: ${error}`);
}
const data = await response.json();
return {
deviceCode: data.deviceCode,
userCode: data.userCode,
verificationUri: data.verificationUri,
verificationUriComplete: data.verificationUriComplete,
expiresIn: data.expiresIn,
interval: data.interval || 5,
};
}
/**
* Poll for token using device code (AWS Builder ID/IDC)
*/
async pollDeviceToken(
clientId: string,View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/oauth/services/kiro.ts:80 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/9193348cea8964b5.
Report an issue: GitHub.