This commit is contained in:
Darren Clarke 2024-03-20 17:51:21 +01:00
parent b8c6e893ff
commit b09cc82544
167 changed files with 2196 additions and 1302 deletions

View file

@ -4,6 +4,7 @@ import { KyselyAdapter } from "@auth/kysely-adapter"
import { db } from "./database";
export const authOptions = NextAuth({
// @ts-ignore
adapter: KyselyAdapter(db),
providers: [
GoogleProvider({

View file

@ -6,7 +6,7 @@ import type { GeneratedAlways } from "kysely";
interface Database {
User: {
id: GeneratedAlways<string>;
id: string;
name: string | null;
email: string;
emailVerified: Date | null;
@ -16,16 +16,16 @@ interface Database {
Account: {
id: GeneratedAlways<string>;
userId: string;
type: string;
type: "oidc" | "oauth" | "email" | "webauthn";
provider: string;
providerAccountId: string;
refresh_token: string | null;
access_token: string | null;
expires_at: number | null;
token_type: string | null;
scope: string | null;
id_token: string | null;
session_state: string | null;
refresh_token: string | undefined;
access_token: string | undefined;
expires_at: number | undefined;
token_type: Lowercase<string> | undefined;
scope: string | undefined;
id_token: string | undefined;
session_state: string | undefined;
};
Session: {