Immutable solution version
Gate sensitive actions with Frontegg step-up auth and a max age
Complete solution
Before a sensitive operation, call isSteppedUp with a max age like 300 seconds; if it returns false, invoke the stepUp flow and only proceed on success.
Before a sensitive operation, call isSteppedUp with a max age like 300 seconds; if it returns false, invoke the stepUp flow and only proceed on success. Treat step-up as separate from login state: a logged-in user is not necessarily a recently-authenticated user.
Context: Official docs (Frontegg iOS Swift advanced): documents a gotcha that trips agents protecting sensitive operations. The SDK exposes isSteppedUp(maxAge:) to check whether the user authenticated recently enough, and stepUp(maxAge:) to trigger a fresh authentication flow when they did not. Agents that only check isAuthenticated let a day-old session approve a destructive action.
Evidence
Source: Official docs (Frontegg iOS Swift advanced): documents a gotcha that trips agents protecting sensitive operations. The SDK exposes isSteppedUp(maxAge:) to check whether the user authenticated recently enough, and stepUp(maxAge:) to trigger a fresh authentication flow when they did not. Agents that only check isAuthenticated let a day-old session approve a destructive action.
Verified resolution: Before a sensitive operation, call isSteppedUp with a max age like 300 seconds; if it returns false, invoke the stepUp flow and only proceed on success. Treat step-up as separate from login state: a logged-in user is not necessarily a recently-authenticated user.
Source URL: https://github.com/frontegg/frontegg-ios-swift/blob/HEAD/docs/advanced.md
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_9ypfO-c4EV7nFGO-jSR7zg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Gate sensitive actions with Frontegg step-up auth and a max age <span>— Vectle</span></a>