Skip to content

Commit f967d01

Browse files
committed
fix: solved some bugs
1 parent 61da8ac commit f967d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http/middleware/auth/middleware.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (m *Middleware) AuthenticateFromCookie(
202202
}
203203
} else {
204204
// Get the cookie from the request
205-
cookie, err = r.Cookie(cookieAccessTokenName)
205+
cookie, err = r.Cookie(cookieName)
206206

207207
// Check if there was an error getting the cookie
208208
if err == nil {
@@ -234,7 +234,7 @@ func (m *Middleware) AuthenticateFromCookie(
234234

235235
// Check if the raw token is empty
236236
if rawToken == "" {
237-
failHandler(cookieAccessTokenName)(
237+
failHandler(cookieName)(
238238
w,
239239
gonethttp.ErrCookieNotFound,
240240
gonethttp.ErrCodeCookieNotFound,

0 commit comments

Comments
 (0)