feat(FN-3906): add frontend scope helpers for workflow step auto-skip

Adds frontend-UX auto-skip behavior for workflow steps in the executor, with tests covering the flow and documentation of the recovery logic. A changeset is included for this patch release.

Fusion-Task-Id: FN-3906

Fusion-Task-Lineage: 3c50b82b-dd03-4ba3-8d77-5aaabb8734da
This commit is contained in:
Fusion
2026-05-11 11:08:02 -07:00
committed by gsxdsm
parent d6bea0d6e5
commit e441398208
5 changed files with 277 additions and 1 deletions

View File

@@ -157,7 +157,14 @@ export function createFusionAuthStorage(): AuthStorage {
if (!shouldHydrateStoredCredential(current, credential)) {
continue;
}
if (credential.type === "oauth" || credential.type === "api_key") {
if (credential.type === "oauth") {
if (typeof credential.expires !== "number" || Date.now() >= credential.expires) {
continue;
}
primary.set(provider, credential as AuthCredential);
continue;
}
if (credential.type === "api_key") {
primary.set(provider, credential as AuthCredential);
}
}