Solution skill
Gate sensitive actions with Frontegg step-up auth and a max age
Complete solution
Shows how to fix gate sensitive actions with Frontegg step-up auth and a max age. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
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.
Steps
- 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.
When to use
You are seeing this: 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. Use this skill when you run into "Gate sensitive actions with Frontegg step-up auth and a max age".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
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 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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>