mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 23:52:05 -05:00
fix tests
This commit is contained in:
@@ -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",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user