File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,31 +60,31 @@ export function setAuthTokens(tokens: AuthTokens, ctx?: any): void {
6060 ctx . cookies . set ( 'token' , access_token , {
6161 maxAge : expires_in || 7 * 24 * 60 * 60 ,
6262 path : '/' ,
63- secure : process . env . NODE_ENV === 'production' ,
63+ secure : false ,
6464 sameSite : 'lax'
6565 } ) ;
6666
6767 if ( refresh_token ) {
6868 ctx . cookies . set ( 'refreshToken' , refresh_token , {
6969 maxAge : 14 * 24 * 60 * 60 ,
7070 path : '/' ,
71- secure : process . env . NODE_ENV === 'production' ,
71+ secure : false ,
7272 sameSite : 'lax'
7373 } ) ;
7474 }
7575 } else {
7676 setCookie ( ctx , 'token' , access_token , {
7777 maxAge : expires_in || 7 * 24 * 60 * 60 ,
7878 path : '/' ,
79- secure : process . env . NODE_ENV === 'production' ,
79+ secure : false ,
8080 sameSite : 'lax'
8181 } ) ;
8282
8383 if ( refresh_token ) {
8484 setCookie ( ctx , 'refreshToken' , refresh_token , {
8585 maxAge : 14 * 24 * 60 * 60 ,
8686 path : '/' ,
87- secure : process . env . NODE_ENV === 'production' ,
87+ secure : false ,
8888 sameSite : 'lax'
8989 } ) ;
9090 }
You can’t perform that action at this time.
0 commit comments