fix(http): remove auth query parameter

master
Henrique Dias 2025-10-22 10:38:30 +02:00
parent b8f64a1c1b
commit 57db25d08a
No known key found for this signature in database
1 changed files with 0 additions and 5 deletions

View File

@ -51,11 +51,6 @@ func (e extractor) ExtractToken(r *http.Request) (string, error) {
return token, nil
}
auth := r.URL.Query().Get("auth")
if auth != "" && strings.Count(auth, ".") == 2 {
return auth, nil
}
if r.Method == http.MethodGet {
cookie, _ := r.Cookie("auth")
if cookie != nil && strings.Count(cookie.Value, ".") == 2 {