fix tests

This commit is contained in:
Paola Estefanía de Campos
2025-12-19 20:17:10 -03:00
parent 9af0a8b68b
commit ec2e8b6123

View File

@@ -262,6 +262,7 @@ describe("trusted origins", () => {
it("should allow dynamically computed trusted origins", async () => {
const { isTrustedOrigin } = await createAuthTestInstance({
trustedOrigins: async (request) => {
if (!request) return [];
const url = new URL(
new URL(request.url).searchParams.get("url") ?? "unknown",
);