From bd7fb7c7f8e679aaca7691adf109d738067a315c Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Thu, 31 Oct 2024 09:06:31 -0400 Subject: [PATCH] fix invalid cookie --- utils/refresh_token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/refresh_token.go b/utils/refresh_token.go index 08a567c..34ecdd9 100644 --- a/utils/refresh_token.go +++ b/utils/refresh_token.go @@ -44,7 +44,7 @@ func RefreshFileToken(storeInstance *store.Store) { } authCookieParts := strings.Split(authCookie, ":") - if len(authCookie) <= 1 { + if len(authCookie) < 5 { fmt.Printf("Invalid cookie: %s\n", authCookie) return }