diff --git a/lib/detect.js b/lib/detect.js index 1ac4712..75906b2 100644 --- a/lib/detect.js +++ b/lib/detect.js @@ -24,6 +24,13 @@ export async function detectFramework(path = "") { if (packageJson?.devDependencies?.["@sveltejs/kit"]) foundFrameworks.push("sveltekit") + if ( + packageJson?.devDependencies?.["@qwik.dev/router"] || + packageJson?.devDependencies?.["@builder.io/qwik-city"] + ) { + foundFrameworks.push("qwik") + } + if (foundFrameworks.length === 1) return foundFrameworks[0] if (foundFrameworks.length > 1) { diff --git a/lib/meta.js b/lib/meta.js index 9c84438..3fc49b3 100644 --- a/lib/meta.js +++ b/lib/meta.js @@ -3,7 +3,7 @@ // TODO: Get these programmatically /** - * @typedef {"next" | "express" | "sveltekit"} SupportedFramework + * @typedef {"next" | "express" | "sveltekit" | "qwik" } SupportedFramework */ export const frameworks = { @@ -31,6 +31,14 @@ export const frameworks = { port: 3000, envFile: ".env", }, + qwik: { + name: "Qwik", + src: "https://github.com/QwikDev/qwik", + demo: "https://qwik-auth-example.vercel.app/", + path: "/auth/", + port: 5173, + envFile: ".env.local", + }, } export const providers = { @@ -170,8 +178,8 @@ export const providers = { 6. Set the app name 7. Click on *App Settings* 8. Click *Set up* under *User authentication settings* -9. Select *Web App, Automated App or Bot* at "Type of app" -10. Add the callback URI (on your clipboard) to *Callback URLs* +9. Select *Web App, Automated App or Bot* at "Type of app" +10. Add the callback URI (on your clipboard) to *Callback URLs* 11. Fill out the other required fields (your website) 12. Copy and paste the *Client ID* 13. Copy and paste the *Client Secret* diff --git a/package.json b/package.json index 3b070b9..8801a45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth", - "version": "1.2.3", + "version": "1.2.4", "homepage": "https://cli.authjs.dev", "repository": { "type": "git",