Sign-in prompts appear when an app cannot renew an expired credential quietly or when its sign-in policy requires the user to authenticate again.
Key takeaways
- Check which lifetimes apply to your app.
- Test what users see when renewal fails.
- Record prompts separately from completed sign-ins.
- Document session length and revocation checks.
A new user finishes the signup form, lands on the first screen, and starts clicking around. A few minutes later, or the next morning, the app asks them to sign in again. Growth leads often see this as a drop in a funnel report, and few can say whether the cause was the product, the timing, or the login itself.
Much of the timing comes from credential lifetimes. A credential is a short record that the app holds after sign-in to show that a user has already proved who they are. Every credential expires. When one expires, the app either renews it in the background or sends the user to a sign-in screen. How long each credential lasts helps determine how often that second case happens.
This post explains the main lifetimes you are likely to meet, what each one means for a first session, and how to plan the session so a sign-in prompt lands at a useful moment. It uses published figures from Microsoft's identity platform as examples. Those figures belong to that platform. Your own app may set different values, so use them as a sense of scale, and check your own settings before you design around them.
What a credential lifetime means
When a user signs in, the identity service gives the app one or more credentials. The access credential is the credential the app presents when it asks for the user's data. Each credential has a lifetime, which is the time between when it is issued and when it stops working. After that point the app cannot use it, and it needs a new credential or a new sign-in.
Two ideas are easy to mix up. The first is the access credential, which is short-lived and reissued often. The second is the sign-in state that lets the app get new access credentials without asking for a password again. A visible sign-in step depends on both expiry and whether renewal can succeed. Renewal often happens with no screen at all, so a user may never notice an access credential expiring. They only notice when renewal fails.
This is why a first session needs more than a single number. A session might last five minutes or three days. What matters is whether any credential expires inside that window, and what the app does when one does.
Think of it as a chain. The user signs in, the app holds a set of credentials, each credential has its own clock, and the app decides whether to renew quietly or ask. If you know each clock, you can predict when a prompt is possible. If you do not, the prompt looks random to the user and to your analytics, and your team ends up arguing about whether the login is too strict when the real issue is timing.
Four lifetimes in this post
These four lifetimes illustrate different configurations, rather than clocks that every app necessarily uses. Each one comes from a different place, so each has a different owner.
The first is the default access credential. Microsoft's identity platform assigns a random value between 60 and 90 minutes as the default lifetime of an access credential, with an average of 75 minutes. Microsoft Learn: access credentials The word random matters. Two users who sign in at the same moment will not necessarily expire at the same moment, so a cohort of new users will hit this boundary at spread-out times rather than all at once.
The second is a two-hour default for some clients. The same page says tenants that don't use Conditional Access have a default access credential lifetime of two hours for clients such as Microsoft Teams and Microsoft 365. Microsoft Learn: access credentials A tenant is an organization's directory of users. This lifetime depends on the setup, not just the product. It is a reminder that the same identity system can produce different clocks for different configurations, and that the configuration may sit outside your app.
The third is the long-lived credential. The page gives a default lifetime for the long-lived case of 20 to 28 hours. Microsoft Learn: access credentials This lifetime can affect a user who comes back the next day, depending on renewal. A first session that ends in the evening may be unaffected by the short access credential clock, but expiry and renewal together determine what happens the following morning.
The fourth is the session cookie, which is what many web apps use to keep a user signed in between page loads. Firebase's session cookie documentation describes JWT-based session credentials that can only be generated with authorized service accounts. Firebase: manage session cookies Check how your own setup sets the cookie length, and write the value down, along with the reason for it.
Together, these four give four different expiry points to check. The first is at most 90 minutes after the credential was issued. The second is about two hours for the setup described. The third is about 20 to 28 hours after issue, depending on the exact timing. The fourth depends on your session configuration.
Comparing the main options
The table below sets the four lifetimes side by side. The second column holds the figures and configuration checks. The third column is the moment a sign-in prompt could appear, during the first session or on a return visit, and the fourth column is the setting your team owns or can check.
| Option | Lifetime or configuration check | When a sign-in prompt could appear | What you control |
|---|---|---|---|
| Default access credential | 60-90 minutes (75 minutes on average) | Once it expires, if the app cannot renew it quietly | Check the provider's settings |
| Two-hour default (no Conditional Access) | two hours | After expiry, if not renewed | Whether Conditional Access is configured |
| Long-lived credential | 20 to 28 hours | On a return visit after the lifetime ends, if renewal fails | Provider settings and how your app renews |
| Session cookie | Check your configuration | When your session length runs out and sign-in is required | Check the length and whether revocation is checked |
The rows highlight different checks. The first two rows are short, so in a first session the real question is renewal: can the app get a fresh credential without showing anything? The third row can affect the next-day return. The fourth row calls for checking your session configuration and documenting its length.
Illustrative example: a short first session
Imagine someone spends 20 minutes in the first session and then leaves. With an illustrative access credential lifetime of 60 minutes, the access credential will not expire during this session. If the user returns after 90 minutes, that original credential has expired. Whether the user sees anything then depends on renewal. Record whether the app renews quietly or shows a sign-in prompt.
That example shows why one number is never enough. The user had the same first session in each case, but the outcome on the return visit depends on a clock that the first session may not have touched at all.
Where the first session goes wrong
A sign-in prompt is a cost to the first session. It takes the user out of the task, and it asks for trust before they have seen much value. So the timing of any prompt matters as much as whether it appears at all.
Microsoft's examples show how renewal changes what the user sees. The page notes that if a new credential has a lifetime of 90 minutes, the user wouldn't see a credential prompt for another hour and a half. Microsoft Learn: access credentials In other words, a fresh credential can buy quiet time. The same page says that when the lifetime varies between 60 and 90 minutes, the actual sign-in interval falls anywhere between one hour and two and a half hours. Microsoft Learn: access credentials The interval is the gap between prompts. The gap is not fixed, so you cannot promise a user any particular quiet period.
The page also describes a case that is easy to miss. If a user with a credential that has a one-hour lifetime performs an interactive sign-in at 59 minutes, there's no credential prompt because the sign-in is below the threshold. Microsoft Learn: access credentials Check the threshold in your own configuration before applying this example. What you can take from it is that a sign-in made just before expiry may not produce a prompt at all. That can make a login look smoother at certain moments than it is at others. Test this in your own setup before you rely on it.
A drop at the sign-in screen can look like a conversion problem when it is really a timing problem. The same screen might lose users at the start of a session and at the return visit, for two different reasons. Treating those as one number leads to the wrong fix.
For a first session, four habits help.
The first habit is to record the moment a sign-in prompt is shown separately from the moment a user completes sign-in. A funnel that lumps them together hides the cause. A prompt that appears and is abandoned tells you something different from a prompt that never appears.
The second is to place the first required sign-in after a clear value moment. If the user has just saved something, finished a setup step, or seen a result, a sign-in request feels like a reasonable next step. Review the wording with these first-session message checks.
The third is to test expiry on purpose. Confirm how to trigger expiry in your own configuration, and then walk through the first session as a new user would. A forced expiry shows the exact screen a user sees, which analytics can blur together with every other cause of a drop. Use the signup authentication checks to plan that walkthrough.
The fourth is to write down which component decides each prompt. If the identity provider sets the access credential clock, say so. If your session cookie sets its own length, say so. When the funnel changes, this list tells you where to look first, and it saves a meeting about which team owns the problem.
Session cookies and revocation
The session cookie deserves its own section because its configuration affects how long a session can last. Firebase presents its session-cookie design as improved security. Firebase: manage session cookies For a growth lead, the security detail is less important than the design consequence. Check how your configuration sets the session length.
That has a practical effect on the first session. If the session is set to a short length, a new user may be asked to sign in again sooner than the product team expects. If it is set to a long length, the session may outlive the reason the user first signed in. Neither choice is automatically right. The right length depends on what the user does in the product and how sensitive the account data is, so write the reasoning next to the setting.
Revocation is the other part. The same page notes that an additional option is available to check for session revocation. Firebase: manage session cookies Revocation means a session can be ended before its time runs out. Check whether your application enables that option. Decide which routes need the check, and document the reason. Review the protection needed for both welcome screens and routes that change account data.
This choice also affects how you explain a prompt. A user who was signed out because a session was revoked deserves a different message from a user whose session simply reached its planned length. If both get the same generic screen, the user cannot tell whether something is wrong with their account.
Before you ship
Before you change a first session, write the applicable lifetimes into one short document: the default access credential, the two-hour default where it applies, the long-lived credential, and your session cookie length. Add the source for each. Then mark which lifetime each sign-in prompt depends on.
Next, decide what should happen when a credential expires during the first session. There are two broad options. The app can renew quietly and keep the user in the task, or it can prompt at a point you chose. Renewing quietly is kinder to the first session, but it only works while the underlying sign-in is still valid. Prompting at a chosen point costs a moment of friction, but the user knows why it happened and can plan around it.
Then measure the result. Track the prompt as its own event, track completions separately, and compare first sessions that ended before and after an access credential expired. Do not claim that one approach works better until you have split the data this way, because a single average will hide the effect you are trying to measure.
Finally, keep the first session honest about why it asks for sign-in. A prompt that appears because a clock ran out is easier to accept when the screen explains that the account is the same, the task is the same, and the user only needs to confirm who they are. Plain words help here. A short explanation on the screen usually does more good than a clever animation.
The four lifetimes will not tell you how many users sign in again. They tell you which moments are possible, and that is enough to design a first session that asks at a sensible time. The rest comes from measurement, and it is worth setting up before the next launch rather than after the next drop.
Today, walk through one expiry in your test setup and record whether renewal succeeds quietly or a prompt interrupts the task.
Questions
Does expiry always cause another sign-in?
No, renewal can keep the user signed in without showing a screen. Test both successful renewal and renewal failure in your own setup.
What should you check for session cookies?
Check the configured length and whether your application checks revocation. Document why those settings suit the routes the session protects.