mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-24 08:01:56 -05:00
fix(expo): when acc is empty in the getCookie function in the expo client only return the key value pair
This commit is contained in:
@@ -108,7 +108,7 @@ export function getCookie(cookie: string) {
|
||||
if (value.expires && new Date(value.expires) < new Date()) {
|
||||
return acc;
|
||||
}
|
||||
return `${acc}; ${key}=${value.value}`;
|
||||
return acc ? `${acc}; ${key}=${value.value}` : `${key}=${value.value}`;
|
||||
}, "");
|
||||
return toSend;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user