How to connect uploadthing to the Clerk auth?
I am using the pages directory and want to protect my file upload using Clerk's getAuth. I get the following error: ERROR! An error occured when running the middleware for the imageUploader route
Solution:Jump to solution
I think I had the same problem as you and used https://github.com/matthewspear/uploadthing-clerk-app to fix it
GitHub
GitHub - matthewspear/uploadthing-clerk-app
Contribute to matthewspear/uploadthing-clerk-app development by creating an account on GitHub.
2 Replies
Solution
I think I had the same problem as you and used https://github.com/matthewspear/uploadthing-clerk-app to fix it
GitHub
GitHub - matthewspear/uploadthing-clerk-app
Contribute to matthewspear/uploadthing-clerk-app development by creating an account on GitHub.
Thanks this works great!