chore: add explicit type for trustedOrigins callback parameter (#6892)

This commit is contained in:
Paola Estefanía de Campos
2025-12-20 01:56:59 +00:00
committed by github-actions[bot]
parent 87bf226b3d
commit b37038ea48
@@ -261,7 +261,7 @@ describe("trusted origins", () => {
describe("dynamic trusted origins", () => {
it("should allow dynamically computed trusted origins", async () => {
const { isTrustedOrigin } = await createAuthTestInstance({
trustedOrigins: async (request) => {
trustedOrigins: async (request: Request | undefined) => {
if (!request) return [];
const url = new URL(
new URL(request.url).searchParams.get("url") ?? "unknown",