Skip to content

Commit 75a3104

Browse files
committed
Debug authjs
1 parent a4cbe33 commit 75a3104

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SolidAuth, type SolidAuthConfig } from "@solid-mediakit/auth";
1+
import { SolidAuth } from "@solid-mediakit/auth";
22
import { authOptions } from "~/server/auth";
33

44
export const { GET, POST } = SolidAuth(authOptions);

src/server/auth.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { type SolidAuthConfig } from '@solid-mediakit/auth'
2-
import GitHub from '@auth/core/providers/github'
1+
import { auth, type SolidAuthConfig } from "@solid-mediakit/auth";
2+
import GitHub from "@auth/core/providers/github";
33

4-
declare module '@auth/core/types' {
4+
declare module "@auth/core/types" {
55
export interface Session {
6-
user?: DefaultSession['user']
6+
user?: DefaultSession["user"];
77
}
88
}
99

@@ -15,5 +15,5 @@ export const authOptions: SolidAuthConfig = {
1515
}),
1616
],
1717
debug: false,
18-
basePath: import.meta.env.VITE_AUTH_PATH,
19-
}
18+
basePath: "/api/auth",
19+
};

0 commit comments

Comments
 (0)