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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user