fix(http): remove auth query parameter
parent
b8f64a1c1b
commit
57db25d08a
|
|
@ -51,11 +51,6 @@ func (e extractor) ExtractToken(r *http.Request) (string, error) {
|
||||||
return token, nil
|
return token, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
auth := r.URL.Query().Get("auth")
|
|
||||||
if auth != "" && strings.Count(auth, ".") == 2 {
|
|
||||||
return auth, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if r.Method == http.MethodGet {
|
if r.Method == http.MethodGet {
|
||||||
cookie, _ := r.Cookie("auth")
|
cookie, _ := r.Cookie("auth")
|
||||||
if cookie != nil && strings.Count(cookie.Value, ".") == 2 {
|
if cookie != nil && strings.Count(cookie.Value, ".") == 2 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue