From 77742eaccca2f1899e48b4996fe443c27b2cad0c Mon Sep 17 00:00:00 2001 From: Satont Date: Sat, 16 Dec 2023 06:03:06 +0300 Subject: [PATCH] chore(tokens): adjust shift of token expiration --- apps/tokens/internal/grpc_impl/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tokens/internal/grpc_impl/helpers.go b/apps/tokens/internal/grpc_impl/helpers.go index 34671c815..5f3f1b80e 100644 --- a/apps/tokens/internal/grpc_impl/helpers.go +++ b/apps/tokens/internal/grpc_impl/helpers.go @@ -4,7 +4,7 @@ import ( "time" ) -const expireShift = 5 * time.Second +const expireShift = 15 * time.Minute func isTokenExpired(expiresIn int, obtainmentTimestamp time.Time) bool { currentTime := time.Now().UTC()