From 06fb2d8b67ebbfd2ddec4f5f1468e32d03bbee4e Mon Sep 17 00:00:00 2001 From: David Denton Date: Sat, 2 Nov 2024 14:36:50 +0000 Subject: [PATCH] Add timout to the oauth persistance --- oauth/src/main/kotlin/com/example/InMemoryOAuthPersistence.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth/src/main/kotlin/com/example/InMemoryOAuthPersistence.kt b/oauth/src/main/kotlin/com/example/InMemoryOAuthPersistence.kt index e50b700..8178c88 100644 --- a/oauth/src/main/kotlin/com/example/InMemoryOAuthPersistence.kt +++ b/oauth/src/main/kotlin/com/example/InMemoryOAuthPersistence.kt @@ -73,6 +73,6 @@ class InMemoryOAuthPersistence(private val clock: Clock) : OAuthPersistence { private fun expiring(name: String, value: String) = Cookie( name, value, path = "/", - expires = clock.instant() + expires = clock.instant().plusSeconds(900) ) }