Closed andrewbateman closed 1 year ago
Hi there we are aware of this issue and are working on updating some code on our side.
We will then be able to handle expo updates using base64 strings.
Any update on this one? Thanks!
Hey all, we're working on adding support for base64 encoded images in user.setProfileImage()
. It's probably going to be out by end of next week.
Will provide another update once the feature is out. Thanks everybody for being patient.
Hello all, a fix for the problem has been released. The User.setProfileImage
method now accepts a file as a base64 encoded data URL.
Usage:
user.setProfileImage({ file: "data:image/png;base64,<base64-encoded-string>" });
The latest clerkJS (v4.47.0) and expo (v0.18.0) releases include the fix.
Closing the issue, but feel free to reopen if something's not right.
Working for me with @clerk/clerk-expo@0.18.0
🎉
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
pk_test_aG9wZWZ1bC1zY29ycGlvbi0zMC5jbGVyay5hY2NvdW50cy5kZXYk
Package + Version
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
@clerk/remix
@clerk/types
@clerk/themes
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore
Dependencies + versions
Browser/OS
N/A
Description
When trying to update a user's profile image from an Expo app, the call to user.setProfileImage does not accept a blob returned from a call to
fetch
. The promise rejects with this error.I have also tried converting the blob to a File object and passing that instead, which resulted in the same error.
Is there a better way to generate the blob from the picked file?