test: include httpOnly tag
This commit is contained in:
parent
24f4d8023e
commit
a5a443a61e
@ -110,8 +110,9 @@ func TestRequireRTMiddleware(t *testing.T) {
|
|||||||
req := httptest.NewRequest("GET", "/", nil)
|
req := httptest.NewRequest("GET", "/", nil)
|
||||||
if tc.token != "" {
|
if tc.token != "" {
|
||||||
req.AddCookie(&http.Cookie{
|
req.AddCookie(&http.Cookie{
|
||||||
Name: "refresh_token",
|
Name: "refresh_token",
|
||||||
Value: tc.token,
|
Value: tc.token,
|
||||||
|
HttpOnly: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user