fix: add version for open api schema (#1108)

This commit is contained in:
Bereket Engida
2025-01-03 09:03:48 +03:00
committed by GitHub
parent 7aa587b6d9
commit 3455132c99
2 changed files with 6 additions and 0 deletions

View File

@@ -409,6 +409,7 @@ export async function generator(ctx: AuthContext, options: BetterAuthOptions) {
info: {
title: "Better Auth",
description: "API Reference for your Better Auth Instance",
version: "1.1.0",
},
components,
security: [

View File

@@ -122,4 +122,9 @@ describe("expo", async () => {
"better-auth:///dashboard",
);
});
it("should get cookies", async () => {
const c = client.getCookie();
expect(c).includes("better-auth.session_token");
});
});