Is this a clean way to handle S3 image uploads with better-auth in express?
Hey experts,
I’m implementing direct-to-S3 uploads using presigned URLs. The flow is:
Client requests an upload URL from /get-upload-url.
Server validates the user, generates a presigned URL for S3, and returns it.
Client uploads the file directly to S3.
Client calls /confirm-upload to store the final image URL in the user’s profile.
Is there any way to do thing same thing with on itself
/api/auth/update-user?
Current code
1 Reply


