## 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

1. 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.

2. 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.
