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:
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.
Jump to solution
2 Replies
Solution
refrains
refrains16mo ago
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.
ronank_
ronank_16mo ago
Thanks this works great!
Want results from more Discord servers?
Add your server