We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ac428d commit b9d4334Copy full SHA for b9d4334
2 files changed
cookie.go
@@ -12,9 +12,8 @@ type CookieOperation struct {
12
HttpOnly bool
13
}
14
15
-func NewCookieOp() *CookieOperation {
+func NewCookieOp(domain string) *CookieOperation {
16
path := "/"
17
- domain := "hello-slide.jp"
18
19
return &CookieOperation{
20
Path: path,
tokenOp.go
@@ -8,8 +8,8 @@ type TokenOperation struct {
8
CookieOp CookieOperation
9
10
11
-func NewTokenOp() *TokenOperation {
- cookieOp := NewCookieOp()
+func NewTokenOp(domain string) *TokenOperation {
+ cookieOp := NewCookieOp(domain)
return &TokenOperation{
CookieOp: *cookieOp,
0 commit comments