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.yellow(`clerk setup for framework '${framework}' is not yet automated. Please refer to https://clerk.com/docs for manual setup instructions.`));
@@ -293,7 +293,7 @@ export async function setupClerk(state) {
293
293
exportasyncfunctionsetupAuth0(state){
294
294
const{ framework, projectName, language }=state;
295
295
296
-
console.log(chalk.blue(`Setting up Auth0 for ${framework} project: ${projectName} \n📝 Language: ${language}`));
296
+
console.log(chalk.blue(`Setting up Auth0 for ${framework} project: ${projectName} \nLanguage: ${language}`));
297
297
298
298
// Validate framework support
299
299
if(!isFrameworkSupported(framework)){
@@ -305,6 +305,6 @@ export async function setupAuth0(state) {
305
305
awaitsetupAuth0Angular(state);
306
306
return;
307
307
}else{
308
-
console.log(chalk.yellow(`⚠️ Auth0 setup for framework '${framework}' is not yet automated. Please refer to https://auth0.com/docs/quickstart/spa/angular for manual setup instructions.`));
308
+
console.log(chalk.yellow(`Auth0 setup for framework '${framework}' is not yet automated. Please refer to https://auth0.com/docs/quickstart/spa/angular for manual setup instructions.`));
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);
0 commit comments