diff --git a/.github/ISSUE_TEMPLATE/2_bug_provider.yml b/.github/ISSUE_TEMPLATE/2_bug_provider.yml index d01206450d..a7af5b7ea3 100644 --- a/.github/ISSUE_TEMPLATE/2_bug_provider.yml +++ b/.github/ISSUE_TEMPLATE/2_bug_provider.yml @@ -42,6 +42,7 @@ body: - "Discord" - "Dribbble" - "Dropbox" + - "Eventbrite" - "EVE Online" - "Facebook" - "FACEIT" diff --git a/docs/pages/getting-started/adapters/prisma.mdx b/docs/pages/getting-started/adapters/prisma.mdx index e9c508ae55..6ce9615afa 100644 --- a/docs/pages/getting-started/adapters/prisma.mdx +++ b/docs/pages/getting-started/adapters/prisma.mdx @@ -26,6 +26,7 @@ DATABASE_URL=postgres://postgres:adminadmin@0.0.0.0:5432/db ``` ### Configuration + To improve performance using `Prisma ORM`, we can set up the Prisma instance to ensure only one instance is created throughout the project and then import it from any file as needed. This approach avoids recreating instances of PrismaClient every time it is used. Finally, we can import the Prisma instance from the `auth.ts` file configuration. ```ts filename="prisma.ts" @@ -35,7 +36,7 @@ const globalForPrisma = globalThis as unknown as { prisma: PrismaClient } export const prisma = globalForPrisma.prisma || new PrismaClient() -if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma +if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma ``` diff --git a/docs/pages/guides/role-based-access-control.mdx b/docs/pages/guides/role-based-access-control.mdx index 334a663dfb..f4178f233b 100644 --- a/docs/pages/guides/role-based-access-control.mdx +++ b/docs/pages/guides/role-based-access-control.mdx @@ -310,6 +310,7 @@ export default async function Page() { return

You are not authorized to view this page!

; } ``` + If you want to use the role on the client side, use the `useSession` hook. The `session.user.role` will contain the required role if you exposed it via the `session` callback. diff --git a/docs/pages/reference/_meta.js b/docs/pages/reference/_meta.js index 94ae23065a..ea0ffabbab 100644 --- a/docs/pages/reference/_meta.js +++ b/docs/pages/reference/_meta.js @@ -8,6 +8,7 @@ export default { "nextjs": "next-auth", sveltekit: "@auth/sveltekit", express: "@auth/express", + qwik: "@auth/qwik", "solid-start": "@auth/solid-start", warnings: "Warnings", errors: { diff --git a/docs/typedoc.config.cjs b/docs/typedoc.config.cjs index 6bef4b98bc..7822c6d730 100644 --- a/docs/typedoc.config.cjs +++ b/docs/typedoc.config.cjs @@ -7,8 +7,6 @@ const frameworks = fs .readdirSync(path.resolve(__dirname, "../packages")) .filter((dir) => dir.startsWith("frameworks-")) .filter((dir) => dir !== "frameworks-template") - // TODO: Fix Qwik Auth API Reference generation - .filter((dir) => dir !== "frameworks-qwik") .map((dir) => `../packages/${dir}`) frameworks.push("../packages/next-auth", "../packages/core") diff --git a/packages/core/src/providers/eventbrite.ts b/packages/core/src/providers/eventbrite.ts index f7e980c6ff..63b87b89ca 100644 --- a/packages/core/src/providers/eventbrite.ts +++ b/packages/core/src/providers/eventbrite.ts @@ -9,7 +9,7 @@ * @module providers/eventbrite */ -import type { OAuthConfig, OAuthUserConfig } from "." +import type { OAuthConfig, OAuthUserConfig } from "./index.js" /** * @see https://www.eventbrite.com/platform/api#/reference/user/retrieve-your-user/retrieve-your-user diff --git a/packages/frameworks-qwik/typedoc.config.cjs b/packages/frameworks-qwik/typedoc.config.cjs new file mode 100644 index 0000000000..b89d7339c4 --- /dev/null +++ b/packages/frameworks-qwik/typedoc.config.cjs @@ -0,0 +1,14 @@ +// @ts-check + +/** + * @type {import('typedoc').TypeDocOptions & import('typedoc-plugin-markdown').MarkdownTheme} + */ +module.exports = { + entryPoints: ["src/index.ts"], + entryPointStrategy: "expand", + tsconfig: "./tsconfig.json", + entryModule: "@auth/qwik", + entryFileName: "../qwik.mdx", + includeVersion: true, + readme: 'none', +}