I have AuthFeature with SessionExpiry on server set to 5 seconds.
If I authenticate while I’m already authenticated, then the session will never expire.
Code sample:
Plugins.Add(
new AuthFeature(
() => new AuthUserSession(),
new IAuthProvider[] { new CredentialsAuthProvider() { SessionExpiry = TimeSpan.FromSeconds(5) } }
)
);