We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9902a commit 5dfba3fCopy full SHA for 5dfba3f
pkg/auth/token.go
@@ -299,7 +299,8 @@ func GetTokenFromRequest(r *http.Request) (string, error) {
299
300
mergeToken := strings.TrimSpace(tokenCookie.Value)
301
for _, cookie := range r.Cookies() {
302
- if cookie.Name != "token" && strings.HasPrefix(cookie.Name, "token") {
+ // any cookie with token%d structure
303
+ if cookie.Name != "token" && !strings.HasPrefix(cookie.Name, "token-") && strings.HasPrefix(cookie.Name, "token") {
304
mergeToken = fmt.Sprintf("%s%s", mergeToken, strings.TrimSpace(cookie.Value))
305
}
306
0 commit comments