Hello guys,
I have been today developing a feature where the user could save in a document his avatar picture in base64, im aware of the 2mb limit, my images are really small 200x200 (50kb aprox) And it is $set in a document that is the one linked to user data, then it come on custom_data too.
The document look right in db too:
The problem that I realised is that after doing a request (my one is via graphql customResolver) the value is set ok, the UI works ok but if I logOut I cannot login again,
The issue is similar to this other issue but my case is not the same solution since I started working with realm-web 1 week ago and i have latest: customData - bad base64
I can see two request on the browser, first is:
Login (response payload)
access_token: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiYWFzX2Rld”
device_id: “5fdc285ed0e95c18e86df550”
refresh_token: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiYWFzX2RhdGEiOm51bGwsImJhYXNfZGV2aWNlX2lkIjoiNWZkYzI4NWVkMGU5NWMxOGU4NmRmNTUwIiwiYmFhc19kb21haW5faWQiOiI1ZmQ1MTgyYzI4NjQxZjNmNzg3YzUxNDQiLCJiYWFzX2lkIjoiNWZkYzI4YjU4Y2EwYTBlMzE0MmZkYzJiIiwiYmFhc19pZGVudGl0eSI6eyJpZCI6IjVmZGMyODVkZDBlOTVjMThlODZkZjRkNCIsInByb3ZpZGVyX3R5cGUiOiJsb2NhbC11c2VycGFzcyIsInByb3ZpZGVyX2lkIjoiNWZkNTFkNzAyODY0MWYzZjc4ODExM2Y2In0sImV4cCI6MTYxMzQ0Nzg2MSwiaWF0IjoxNjA4MjYzODYxLCJzdGl0Y2hfZGF0YSI6bnVsbCwic3RpdGNoX2RldklkIjoiNWZkYzI4NWVkMGU5NWMxOGU4NmRmNTUwIiwic3RpdGNoX2RvbWFpbklkIjoiNWZkNTE4MmMyODY0MWYzZjc4N2M1MTQ0Iiwic3RpdGNoX2lkIjoiNWZkYzI4YjU4Y2EwYTBlMzE0MmZkYzJiIiwic3RpdGNoX2lkZW50Ijp7ImlkIjoiNWZkYzI4NWRkMGU5NWMxOGU4NmRmNGQ0IiwicHJvdmlkZXJfdHlwZSI6ImxvY2FsLXVzZXJwYXNzIiwicHJvdmlkZXJfaWQiOiI1ZmQ1MWQ3MDI4NjQxZjNmNzg4MTEzZjYifSwic3ViIjoiNWZkYzI4NWVkMGU5NWMxOGU4NmRmNTBkIiwidHlwIjoicmVmcmVzaCJ9.9MpuF2TW9wU6TYMVf-888JnvOH8wiQTFR-96KsYiG4k”
user_id: “5fdc285ed0e95c18e86df50d”
The second show as “profile” and it fail with ERR CONNECTION CLOSED. the payload is huge and i have tried to decrypt the token and it show the base64 inside, i think the SDK is not supporting it or similar?
Pasted here because token is so long due base64 image.
https://pastebin.ubuntu.com/p/snTXJt8qYp/
FYI maybe this issue was not fully fixed? Realm Web: Custom data base64 fixed by kraenhansen · Pull Request #3055 · realm/realm-js · GitHub