+
+
+```bash
+https://example.com/api/auth/callback/authkit
+```
+
+
+
+
+```bash
+https://example.com/auth/callback/authkit
+```
+
+
+
+
+```bash
+https://example.com/auth/callback/authkit
+```
+
+
+
+
+### Environment Variables
+
+```
+AUTH_AUTHKIT_ID
+AUTH_AUTHKIT_SECRET
+```
+
+### Configuration
+
+
+
+
+```ts filename="/auth.ts"
+import NextAuth from "next-auth"
+import AuthKit from "next-auth/providers/authkit"
+
+export const { handlers, auth, signIn, signOut } = NextAuth({
+ providers: [AuthKit({ authkitProvider: "authkit", screenHint: "sign-in" })],
+})
+```
+
+
+
+
+```ts filename="/src/routes/plugin@auth.ts"
+import { QwikAuth$ } from "@auth/qwik"
+import AuthKit from "@auth/qwik/providers/authkit"
+
+export const { onRequest, useSession, useSignIn, useSignOut } = QwikAuth$(
+ () => ({
+ providers: [AuthKit({ authkitProvider: "authkit", screenHint: "sign-in" })],
+ })
+)
+```
+
+
+
+
+```ts filename="/src/auth.ts"
+import { SvelteKitAuth } from "@auth/sveltekit"
+import AuthKit from "@auth/sveltekit/providers/authkit"
+
+export const { handle, signIn, signOut } = SvelteKitAuth({
+ providers: [AuthKit({ authkitProvider: "authkit", screenHint: "sign-in" })],
+})
+```
+
+
+
+
+```ts filename="/src/app.ts"
+import { ExpressAuth } from "@auth/express"
+import AuthKit from "@auth/express/providers/authkit"
+
+app.use(
+ "/auth/*",
+ ExpressAuth({
+ providers: [AuthKit({ authkitProvider: "authkit", screenHint: "sign-in" })],
+ })
+)
+```
+
+
+
diff --git a/packages/core/src/providers/authkit.ts b/packages/core/src/providers/authkit.ts
index eb756f210e..fc3f36ae14 100644
--- a/packages/core/src/providers/authkit.ts
+++ b/packages/core/src/providers/authkit.ts
@@ -9,24 +9,25 @@ import type { OAuthConfig, OAuthUserConfig } from "./index.js"
export interface AuthKitProfile extends Record( - options: OAuthUserConfig
+ options: OAuthUserConfig
& { + authkitProvider?: + | "authkit" + | "GoogleOAuth" + | "AppleOAuth" + | "MicrosoftOAuth" + | "GitHubOAuth" + screenHint?: "sign-in" | "sign-up" + } ): OAuthConfig
{ return { id: "authkit", @@ -35,8 +36,8 @@ export default function AuthKit
( authorization: { url: "https://api.workos.com/user_management/authorize", params: { - provider: "authkit", - screen_hint: "sign-in", + provider: options.authkitProvider ?? "authkit", + screen_hint: options.screenHint ?? "sign-up", }, }, token: {