Commit 23ef44a 1 parent badd5dd commit 23ef44a Copy full SHA for 23ef44a
File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,11 @@ export class GatewayTester {
60
60
return undefined
61
61
}
62
62
63
- public async setCookie ( cookie : Cookie ) : Promise < Cookie > {
63
+ public async setCookie ( cookie : Cookie ) : Promise < void > {
64
64
// Cookie domain must be cleared before setting to avoid issue with "localhost"
65
65
// being in the public suffix list (and therefore denied by setCookie())
66
66
cookie . domain = null
67
- const cookieString = cookie . cookieString ( )
68
- return await this . cookies . setCookie ( cookieString , this . baseUrl , {
69
- http : cookie . httpOnly ,
70
- secure : cookie . secure ,
71
- now : cookie . creation ?? undefined ,
72
- sameSiteContext : cookie . sameSite
73
- } )
67
+ await this . cookies . setCookie ( cookie , this . baseUrl )
74
68
}
75
69
76
70
public async getCookie ( key : string ) : Promise < Cookie | undefined > {
You can’t perform that action at this time.
0 commit comments