mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 08:31:37 -05:00
fix(expo): Due to an incorrect type of the copied request object, the subsequent logic did not use this duplicated object which had the origin field added. This resulted in the MISSING_OR_NULL_ORIGIN error.
This commit is contained in:
@@ -39,7 +39,7 @@ export const expo = (options?: ExpoOptions | undefined) => {
|
||||
if (!expoOrigin) {
|
||||
return;
|
||||
}
|
||||
const req = request.clone();
|
||||
const req = new Request(request);
|
||||
req.headers.set("origin", expoOrigin);
|
||||
return {
|
||||
request: req,
|
||||
|
||||
Reference in New Issue
Block a user