Awesome guide! I managed to get it to work following your instructions very carefully. And after several hour of debugging figured out that this line: app.use(express.json());
was the reason it wasn't working when I tried to integrate it with the rest of my backend. This gave me a 400 error, so if you're also getting that, check you don't have a middleware getting in the way
hello, I am working on a school project using Clerk and that was exactly what I needed ! I followed all the steps but I have a problem in my db. It created an "test" db with an "users" collection but there no users information at all !
hey verma, just make sure you have the right packages installed, and also check the webhook endpoint. Or you can show me a screenshot of what you are getting on your terminal
Hey deepak. I just went through your code. it's a next.js project. but the article was for vite. but I do have a link to a video that will show you how to do the same thing. because the approach I used on vite won't work with a next js project. Here is the link to the video. ๐ youtu.be/NgBxrIC1eHM?si=Y6Vov0rfjJ...
We're a place where coders share, stay up-to-date and grow their careers.
Awesome guide! I managed to get it to work following your instructions very carefully. And after several hour of debugging figured out that this line: app.use(express.json());
was the reason it wasn't working when I tried to integrate it with the rest of my backend. This gave me a 400 error, so if you're also getting that, check you don't have a middleware getting in the way
Thanks gjlander for this correction๐.
hello, I am working on a school project using Clerk and that was exactly what I needed ! I followed all the steps but I have a problem in my db. It created an "test" db with an "users" collection but there no users information at all !
what database are you using?
let's say my app has 10 protected routes and 3 unprotected routes (/, sign-in, sign-up), how can I implement it?
Hey Yash. Just to be sure. Are you asking how you can implement protected routes to your application?
very good and understandable guide
thanks, glad you liked it.
I am unable to get output in my terminal I don't know whats the issue
hey verma, just make sure you have the right packages installed, and also check the webhook endpoint. Or you can show me a screenshot of what you are getting on your terminal
yeah I checked it but everything is right, can I send you the repo. link so you can see whats wrong in there
yea you can.
github.com/deepakk-t7/auth-db-testing . I
cant log the output in my console
Hey deepak. I just went through your code. it's a next.js project. but the article was for vite. but I do have a link to a video that will show you how to do the same thing. because the approach I used on vite won't work with a next js project. Here is the link to the video. ๐
youtu.be/NgBxrIC1eHM?si=Y6Vov0rfjJ...