mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
exposed bknd middlewares to be used for custom routes
This commit is contained in:
@@ -1,9 +1 @@
|
||||
import { describe, expect, it } from "bun:test";
|
||||
import { shouldSkipAuth } from "../../src/auth/middlewares";
|
||||
|
||||
describe("auth middleware", () => {
|
||||
it("should skip auth on asset paths", () => {
|
||||
expect(shouldSkipAuth(new Request("http://localhost/assets/test.js"))).toBe(true);
|
||||
expect(shouldSkipAuth(new Request("http://localhost/"))).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user