When building demo applications or documentation examples, it would be helpful to allow users to test the upload functionality with their own API tokens without modifying environment variables. This would enable interactive demos where users can input their API keys through a UI.
Currently, the token can only be set through:
Environment variables (UPLOADTHING_TOKEN)
Static configuration in createRouteHandler({ config: { token: string } })
Describe the solution you'd like to see
Allow the token to be dynamically set from request headers.
Additional information
No response
๐จโ๐งโ๐ฆ Contributing
[ ] ๐โโ๏ธ Yes, I'd be down to file a PR implementing this feature!
Describe the feature you'd like to request
When building demo applications or documentation examples, it would be helpful to allow users to test the upload functionality with their own API tokens without modifying environment variables. This would enable interactive demos where users can input their API keys through a UI.
Currently, the token can only be set through:
UPLOADTHING_TOKEN
)createRouteHandler({ config: { token: string } })
Describe the solution you'd like to see
Allow the token to be dynamically set from request headers.
Additional information
No response
๐จโ๐งโ๐ฆ Contributing