Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Product leaders want customers to stay signed in on mobile for months, while security and regulators push for stronger session controls. How would you set a long-term approach that balances user experience, fraud and compliance?

We stop treating the session as one thing with one lifetime. Customers stay signed in for months for low-risk use through long-lived refresh tokens that are rotated, revocable and bound to the device, while high-risk actions require recent strong authentication, and risk signals such as a new device or unusual behaviour trigger step-up checks. Users can see and revoke their sessions, and the balance is reviewed regularly with product, security and compliance using fraud, conversion and support data.

Why this question is asked

This tension shows up in every consumer business with a mobile app: banking, insurance, retail, travel. Product sees that every forced sign-in costs customers, and security and regulators see that a phone left unlocked or a stolen token can empty an account. Treated as a single number, the session lifetime, the argument has no good answer, because any value is too long for one side and too short for the other. Interviewers ask this of senior leaders to see whether they can reframe the problem and bring the stakeholders along. In this answer, we will split the session by risk, look at the token design that makes long sessions acceptable, add risk-based step-up, give users control, and set up the data and review process that keeps the balance honest.

1Reframing the Problem: Risk, Not Duration

The question assumes a trade-off between staying signed in and being secure. But most of what a customer does on a long-lived session is low risk: checking a balance, browsing products, tracking an order. A smaller set of actions is high risk: paying a new payee, changing the email or phone number, raising a limit, exporting statements. Fraud concentrates in that second set.

So the long-term approach separates being recognised from being freshly authenticated. A customer can remain recognised for months, and still be asked to prove who they are, quickly and with something strong like biometrics or a passkey, right before a high-risk action. Regulations in payments, such as strong customer authentication rules in some regions, are often framed in exactly this way, which makes the approach easier to defend to compliance. Check the specific rules that apply in your markets.

Session tiers
TierExamplesRequirement
RecognisedView balance, browse, track orderValid rotated refresh token on this device
ElevatedChange address, view full card detailsBiometric or PIN within last 15 min
High riskNew payee, large payment, change emailStrong step-up now, plus risk checks
BlockedRisk engine flags account takeoverFull sign-in and review
Illustrative tiers; the exact actions and windows are agreed with fraud and compliance.

2Making Long Sessions Acceptable

For the recognised tier, we keep the access token short, a few minutes, and let a refresh token carry the long session. That refresh token is rotated on every use, with reuse detection that revokes the whole session if an old token appears again. It is revocable at the authorization server, so a user, a fraud analyst or an automated rule can end the session immediately.

Where the platform allows it, the refresh token is bound to the device. With sender-constrained tokens, for example DPoP, where the app proves possession of a private key held in the phone's secure hardware, a copied token is useless on another device. Combined with an idle limit, such as ending the session if the app is not used for 60 to 90 days, and an absolute limit, such as a full sign-in once a year, this gives product the months it wants without leaving an unbounded credential in the wild.

3Risk Signals and Step-Up Authentication

Not every risky situation is tied to a specific action. A session that suddenly appears from a new device, a new country, a known bad network, or with behaviour unlike the customer's history, deserves more scrutiny even for browsing. A risk engine scores each sign-in, refresh and sensitive request using those signals, and the score decides the outcome: continue silently, ask for step-up, or block and review.

Step-up should be cheap for the real customer. A fingerprint prompt costs a second and is far less damaging to conversion than a full password sign-in. The goal is that the honest customer meets friction rarely and briefly, and the fraudster meets it at exactly the point where they try to take money.

Step throughHandling a sensitive request
  1. Request arrivesFor example, add a new payee
  2. Action needs recent strong auth?From the session tier rules
    YesCheck auth age and riskNoCheck risk only
  3. Recent enough and low risk?Biometric within 15 min, known device
    YesAllowNoAsk for step-up
  4. Step-up passed?Biometric, passkey or code
    YesAllow and recordNoDeny and alert fraud

4 steps in order. Play them, or step through them one at a time.

4Letting Users See and Revoke Sessions

Customers should be able to see where they are signed in, with device name, location and last use, and end any session with one tap, including sign out everywhere. This does three things. It lets a customer react to a lost phone without calling support. It gives fraud teams a clear action to recommend. And it is a visible control that regulators and auditors can point to.

Behind the screen, each entry is a refresh token family at the authorization server. Revoking it ends the session at the next refresh, which with short access tokens is within minutes; for faster effect on high-risk APIs, a deny-list check can make it immediate.

5Measuring and Reviewing the Balance

The balance is not set once. We agree a small set of measures that every side cares about: fraud losses and account-takeover cases, sign-in and step-up rates, drop-off at step-up, conversion on key journeys, and support contacts about sign-in or lost access. Each change to session rules is shipped behind a flag, measured against these, and kept or rolled back.

A regular review, for example quarterly, brings product, security, fraud and compliance to the same table with that data. When fraud rises in one journey, we tighten that journey rather than shorten every session. When step-up drop-off is high, we look for a lighter factor. Writing down each decision with its reason also gives compliance the evidence they need that the controls are deliberate.

6Follow-up questions

What do you say to a product leader who wants no step-up at all?

I show the fraud data for the journeys we want to protect and the measured cost of step-up, which with biometrics is usually small. Then I offer to apply it only where risk is high and to test the impact behind a flag. Most product leaders accept a targeted control backed by data; what they resist is blanket friction.

How do you satisfy a regulator who wants shorter sessions?

By showing that the controls they care about exist: strong authentication for payments and sensitive changes, revocable and device-bound sessions, risk monitoring and user-visible session management, with evidence from monitoring. Often the rule is about authentication for specific actions, not about the session length itself, so read it with compliance.

Does device binding work on every phone?

Most current phones have secure hardware for keys, but older devices and some environments do not. We bind where we can and apply stricter limits or more frequent step-up where we cannot.

7Conclusion

In this answer, we resolved the tension between months-long mobile sessions and strong controls by separating recognition from fresh authentication. Long-lived, rotated, revocable and device-bound refresh tokens keep customers recognised, while high-risk actions and risky signals trigger quick step-up. Users can see and revoke their sessions. Fraud, conversion and support data, reviewed regularly with all stakeholders, keeps the balance justified over time.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by reframing it. The argument is about one number, the session length, but the risk is not spread evenly. Most of what customers do while signed in is low risk, like checking a balance, and fraud concentrates in a few actions like adding a payee or changing the email.

Then, if they want more

So I would let customers stay recognised for months and require recent strong authentication only for those high-risk actions. For the long session itself, access tokens stay short and a refresh token carries the session, rotated on every use with reuse detection, revocable at the server, and bound to the device's secure hardware where possible, with idle and absolute limits.

On top of that, a risk engine looks at signals like a new device, a new location or unusual behaviour and can ask for step-up even for browsing, or block and alert fraud. Step-up should be cheap, a fingerprint or passkey, so the honest customer barely notices.

I would also give users a screen to see and revoke their sessions, which helps them and gives compliance a visible control.

Finally I would agree measures with product, security, fraud and compliance, such as fraud losses, step-up drop-off, conversion and support contacts, ship changes behind flags, and review the balance quarterly with that data, so decisions are evidence rather than opinion.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
RFC 7519, JSON Web Token
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Product leaders want customers to stay signed in on mobile for months, while security...": https://scrivio-interview-library.netlify.app/spring-boot/jwt/4effb84f78/