Skip to content

Commit 9d5c076

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Updated the token refresh time
1 parent 9141e27 commit 9d5c076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GovUK.Dfe.ExternalApplications.Api.Client/Security/TokenStateManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public async Task<TokenState> GetCurrentTokenStateAsync()
157157
? lastActivity.Value
158158
: lastActivity.Value.ToUniversalTime();
159159
var inactivity = DateTime.UtcNow - lastUtc;
160-
if (inactivity >= TimeSpan.FromMinutes(30))
160+
if (inactivity >= TimeSpan.FromMinutes(5))
161161
{
162162
// Mark that refresh is allowed due to inactivity regardless of normal window
163163
cacheManager.SetRequestScopedFlag("AllowRefreshDueToInactivity", true);

0 commit comments

Comments
 (0)