Skip to content

Commit b9d4334

Browse files
committed
change cookie domain setting
1 parent 1ac428d commit b9d4334

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

cookie.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ type CookieOperation struct {
1212
HttpOnly bool
1313
}
1414

15-
func NewCookieOp() *CookieOperation {
15+
func NewCookieOp(domain string) *CookieOperation {
1616
path := "/"
17-
domain := "hello-slide.jp"
1817

1918
return &CookieOperation{
2019
Path: path,

tokenOp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ type TokenOperation struct {
88
CookieOp CookieOperation
99
}
1010

11-
func NewTokenOp() *TokenOperation {
12-
cookieOp := NewCookieOp()
11+
func NewTokenOp(domain string) *TokenOperation {
12+
cookieOp := NewCookieOp(domain)
1313
return &TokenOperation{
1414
CookieOp: *cookieOp,
1515
}

0 commit comments

Comments
 (0)