Skip to content

Commit

Permalink
fix invalid cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Oct 31, 2024
1 parent 76c792d commit bd7fb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/refresh_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bd7fb7c

Please sign in to comment.