You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(chalk.green.bold(`Clerk setup completed successfully!\nYour app is now configured with Clerk authentication.\nRemember to add your Publishable Key in the .env file:\nVITE_CLERK_PUBLISHABLE_KEY=your_key_here\n\nYou can now start your app and enjoy secure authentication! 🚀`));
209
253
console.log(chalk.yellow(
210
-
"🛠️ First-time setup:\n"+
254
+
"First-time setup:\n"+
211
255
"1. Sign in to your Clerk dashboard.\n"+
212
256
"2. Create a new application.\n"+
213
257
"3. Copy your 'NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY' and 'CLERK_SECRET_KEY' into your .env.local file."
214
258
));
259
+
if(database==='mongodb'){
260
+
console.log(chalk.yellow(
261
+
"4. Set up Clerk webhooks for user management:\n"+
262
+
" - In the Clerk dashboard, go to Webhooks and create a new webhook with the URL: <HTTPS_URL>/api/webhooks/clerk\n"+
263
+
" - Subscribe to events: user.created, user.updated, user.deleted\n"+
264
+
" - Copy the webhook signing secret into your .env.local as:\n"+
265
+
" CLERK_WEBHOOK_SIGNING_SECRET=your_secret_here"
266
+
));
267
+
}
215
268
216
269
}catch(error){
217
270
console.error(chalk.red("Error setting up Clerk for authentication"),error.message);
console.log(chalk.green.bold('🎉 Vue Clerk setup completed (best-effort). Please verify the main file, App.vue and .env value.'));
575
-
console.log(chalk.green('ℹ️ The `ClerkHeader.vue` component created in src/components can be used as a compact auth button/chip anywhere in your app.'));
575
+
console.log(chalk.green.bold('Vue Clerk setup completed (best-effort). Please verify the main file, App.vue and .env value.'));
576
+
console.log(chalk.green('The `ClerkHeader.vue` component created in src/components can be used as a compact auth button/chip anywhere in your app.'));
577
+
// If the user selected MongoDB, scaffold a minimal backend webhook handler
0 commit comments