refactor: dont pass a domain

This commit is contained in:
Derrick Hammer 2024-03-20 17:13:31 -04:00
parent ad8de8f5a1
commit ee8fa2b98d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -123,7 +123,6 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) {
Secure: true, Secure: true,
HttpOnly: true, HttpOnly: true,
Path: "/", Path: "/",
Domain: routeableApi.Domain(),
}) })
} }
} }
@ -170,7 +169,6 @@ func EchoAuthCookie(jc jape.Context, apiName string) {
Secure: true, Secure: true,
HttpOnly: true, HttpOnly: true,
Path: "/", Path: "/",
Domain: cookies[0].Domain,
}) })
} }
} }
@ -202,7 +200,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
Secure: true, Secure: true,
HttpOnly: true, HttpOnly: true,
Path: "/", Path: "/",
Domain: routeableApi.Domain(), // Domain: "." + routeableApi.Domain(),
}) })
} }