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 61da8ac commit f967d01Copy full SHA for f967d01
http/middleware/auth/middleware.go
@@ -202,7 +202,7 @@ func (m *Middleware) AuthenticateFromCookie(
202
}
203
} else {
204
// Get the cookie from the request
205
- cookie, err = r.Cookie(cookieAccessTokenName)
+ cookie, err = r.Cookie(cookieName)
206
207
// Check if there was an error getting the cookie
208
if err == nil {
@@ -234,7 +234,7 @@ func (m *Middleware) AuthenticateFromCookie(
234
235
// Check if the raw token is empty
236
if rawToken == "" {
237
- failHandler(cookieAccessTokenName)(
+ failHandler(cookieName)(
238
w,
239
gonethttp.ErrCookieNotFound,
240
gonethttp.ErrCodeCookieNotFound,
0 commit comments