From 34c855286c2660e51985764bee54a2711f12c7a9 Mon Sep 17 00:00:00 2001 From: Solomon ogu Date: Fri, 10 Nov 2023 08:51:23 +0100 Subject: [PATCH] chores: possile fix for auth --- bun.lockb | Bin 15077 -> 15068 bytes src/index.ts | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bun.lockb b/bun.lockb index b7f3eb693ea09e34ac17aba59bba2782da67e2d0..cdd580193aaa202cd8e85eb441781d5c3cacaf0f 100755 GIT binary patch delta 4645 zcmeHKd011|62CVKNr1=}AOQsevdEG>hRpzVH@Hx&Sk$&GVNqF>zynbO79NNoCZ`J3 zK8s*ou%e|Ua!W<+E20>T? zUj?!S@KZ+KiXup%XB8O7b_;+z0$0Koys8j5-jxMj9kgEx`C5Ce*OJ&_clqf?&voq~#zfO_I+okn*qu`!PW*4Wk+KzM!|P z>l_%@dg2vwqjFgbV8vum(oh6lVY3w^1(sj~_#4zYA^xr@mjK;A-C~_7GHdm6{QJ#4i{XXPvCR#xY zVNZoj2EsNDpk)DC!!~vWXd^(2kMD$9&0lNJfHnlQpd=vbuU*)%;6h-nDNGioGuupn znJLEgIH%qQ`*+z~EtarHJce^@!``6%?;KK(@1r3#T;uxT9M3xeVLsA0Ka6V)6D}}; z6XgzsljRA7$N$1HP%j|tzy}Bq%&~q95DuIG2oKD$UTEYZ19T8XKzIysbc5~j|Jb}4 z6N3aXLOd%?csl2i$3Fv-N^aI&?|$g9Ea{auE#%RH&~4-eg})^1?B9F%k#=9kep{S= zzeCYE=Lc>q%er&?`ue4z!~lJ95z`*ES#h=9x?j#m>t`?D;jov<9%rYPW=; zEa_&!4Tt=uL)3d$c8Vvar9bsCn_RebnVq^XN)aPmzU%&1fAgs^Zv#Xm@zUxg$u0mr)YQo49Oww}6UdUx-# zLvNpo3{w?^M!CptZZ9e?-M_**myG14l3xYt6ZeEzH@64zZKF!o^M6b_(s=D<_Rk-E zqwl)pSGe(L9a^vZB7AmRFl+wYz5a}T>kiJdSu>(rE-9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*~ykh?WI|M5`W)SM~273ry-wXsK+Uv3{A3#=i2QI+I& zXI-w5d@wS<@ysWz1;wR3Tg545oJ@ziZ4Ab-z>K78->={L;j#_@t9uI_Cj&ooS2<6A zeaN7#)!6o@{Y7sd?%c!w>Oo9I=$T4k%gD?p7VpeEzIc|9r#usPvLGjSU%5i>s#jTb zy{NmYqBQ8&IXh98H8>m^Xl%tOLaq>Pcjlmdrls%52)ajTxhse z+_A9m{EfOEl{{MyY9Hr5?AlkXpY~B<26t&yFzNazs+Fha_dF9P7_8mdSn`f^AXMae?*3RP+u1)I z<=JraGZpQ!MoQ+6!@~v#1^Y6cgLc>tGL%snw?q%7mHVa6-FlRGO*dM!YR}!<7z;LTreyx(Vl#Ju8 zXkb*U=VClxi{|<~9WH`!piz2Jo$U!G{(xhmp?kJw6W&g2>&8t9P%0{PQ|03h z1RLCervXm~#^1jcA^ zYvu&J9VY;qgOdQU0x~6Hg#%K#JM!@g@Lb%6;kY;+&WXQKcm;T682M`;bi^HAK~SKT z#8(c&1Q>(Ez%W1z9QTb_VsN@eU>$?Opl~1z9tX$I7@z|%296hiZFm8=5CvMmd~GYn z3W#e6owl4L#i(vNmo5}YiFJtd;E|h=jR((0ck?pt+j(D9oUoQcE)t0aB7uacK#?9i zk?sb@3Egz0^TK{}>=y_H(3+P48UR}$KNcFwp=>FkkO^QBp&cG}T-{wwcQc}pQh~@v zAV%MKBx&$H3p<)r-?hv`|v$rKXu3xu$ka8$vU*y`?fu1@`xt<`}W zwHRQ)7CrQw&n0Idrl$wVLf)PcEEb$I*a*1Vp)HZ2F^(LbP#7lDw# z1vLoaEx&U4JD@V)aK)e ZA|tFnMXm0=j diff --git a/src/index.ts b/src/index.ts index 6c3ede7..9aecfca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,10 @@ export const setup = (app: Elysia) => exp: "15m", }) ) - .use(cookie()); + .use(cookie({ + sameSite: "none", + secure: true, + })); const app = new Elysia() .use(