Prompt
How do I add step-up authentication for risky actions without passwords?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
To add step-up authentication for risky actions without passwords, use a passkey or device-based reauthentication flow instead of asking for the user’s password again.
Good options
1) Passkeys / WebAuthn reauthentication
Best modern choice.
How it works
- User is already signed in.
- Before a sensitive action, you trigger a WebAuthn assertion.
- The platform authenticator asks for biometric, PIN, or device unlock.
- If successful, you allow the action.
Use for
- Changing email/password
- Adding payment methods
- Viewing sensitive data
- Wire transfers / admin actions
Why it’s good
- No password needed
- Phishing-resistant
- Strong security with good UX
2) Re-auth with an “authentication assurance” token
If you already have a primary session, issue a short-lived token after step-up.
Pattern
- User logs in normally.
- For risky action, server checks risk policy.
- If step-up required, client performs WebAuthn, TOTP, push approval, or device unlock.
- Server issues a short-lived reauthenticated session token or marks the session as “elevated”.
- Sensitive action proceeds only while that elevation is valid.
Important
- Keep it short-lived: e.g. 5–15 minutes.
- Bind it to the current device/session.
- Scope it only to the specific action or category.
3) Device-based approval
Use the user’s trusted device as the second factor.
Examples
- Push notification to a registered device
- In-app approval with biometric check
- QR code approval from another signed-in device
Best practice
- Require explicit context in the approval:
- “Approve transfer of $500 to Alice”
- “Approve email change”
- Don’t use generic “Approve?” prompts alone.
Recommended architecture
Step 1: Classify risky actions
Define which actions need step-up, such as:
- Payment or payout changes
- Security setting changes
- Exporting data
- Admin privilege escalation
- Contact or recovery option updates
Step 2: Use a risk engine
Trigger step-up based on:
- Action sensitivity
- New device / new geo
- Unusual IP / ASN / VPN
- Velocity of actions
- Account age / trust level
- Amount threshold
Step 3: Require a fresh verification
When step-up is needed:
- Show a confirmation screen
- Ask for WebAuthn/passkey auth or device approval
- Return a short-lived signed proof of reauthentication
Step 4: Enforce server-side
Never trust the UI alone.
- The backend must verify the step-up proof
- Each sensitive endpoint should check:
- user is authenticated
- step-up is fresh enough
- step-up scope matches the action
WebAuthn-friendly pattern
A common implementation is:
- User signs in with session cookie / OIDC token.
- User clicks “Delete API key”.
- Server responds: step-up required.
- Client calls
navigator.credentials.get(...)with a challenge. - Authenticator performs biometric/PIN.
- Client sends assertion to server.
- Server verifies:
- challenge
- origin / RP ID
- signature
- user verification flag
- Server marks step-up as satisfied for a short period.
- Sensitive action is executed.
Security tips
- Prefer phishing-resistant methods: passkeys/WebAuthn over OTP.
- Make step-up action-specific when possible.
- Use short expiration for elevated sessions.
- Re-prompt on:
- account recovery changes
- new payees
- high-value transactions
- Log step-up events for audit purposes.
- Provide fallback methods, but keep them less privileged and rate-limited.
What to avoid
- Asking for the password again if you want a passwordless flow.
- Using email links for high-risk actions as the only control.
- Relying on client-side flags like
reauthenticated=true. - Generic approval prompts without details.
- Long-lived “remember this device forever” elevation for sensitive actions.
Practical recommendation
If you’re building this today, the best default is:
- Primary login: passkey / WebAuthn
- Step-up for risky actions: WebAuthn reauthentication with user verification
- Fallback: device approval or another strong factor
- Server: short-lived elevated authorization tied to the action
If you want, I can also provide:
- a reference architecture,
- API design, or
- a sample implementation for web or mobile.