@overaihq/cli 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26713,12 +26713,19 @@ var getAccessToken = async () => {
|
|
|
26713
26713
|
);
|
|
26714
26714
|
deployment.pending = omit(deployment.pending, target.organizationId);
|
|
26715
26715
|
writeStore(store);
|
|
26716
|
+
if (response?.reason === "mfa_setup_required") return response;
|
|
26716
26717
|
}
|
|
26717
26718
|
throw new InteractiveSignInRequired(
|
|
26718
26719
|
`Org ${target.organizationId} requires browser authorization. ${signin}`
|
|
26719
26720
|
);
|
|
26720
26721
|
})();
|
|
26721
|
-
if (result.type === "redirect")
|
|
26722
|
+
if (result.type === "redirect") {
|
|
26723
|
+
if (result.reason === "mfa_setup_required")
|
|
26724
|
+
throw new Error(
|
|
26725
|
+
`Org ${target.organizationId} requires two-factor authentication. Enroll at ${result.redirectUrl}. ${signin}`
|
|
26726
|
+
);
|
|
26727
|
+
throw new InteractiveSignInRequired(signin);
|
|
26728
|
+
}
|
|
26722
26729
|
const claims = decodeJwtClaims(result.token);
|
|
26723
26730
|
if (claims.org !== target.organizationId || target.identityId != null && claims.user_id !== target.identityId) {
|
|
26724
26731
|
throw new Error(
|