it is possible with the frontend SDK (the web-js one) to fetch user metadata?
r
rp_st
08/15/2023, 12:30 PM
Hey. Not directly. You can make an api on the backend which returns the desired info, or you can add metadata to the session’s access token payload and read that on the frontend directly without any api call
k
Kvist
08/15/2023, 12:31 PM
we don't want to store it in the token, as we have some issues with updating the token. It doesn't always work - very flaky.. Will make endpoint to get metadata and another to update it
r
rp_st
08/15/2023, 12:31 PM
When you say updating the token doesn’t work, why is that?
k
Kvist
08/15/2023, 12:33 PM
for some odd reason it seems like it's UNAUTHORIZED
Kvist
08/15/2023, 12:33 PM
but the token is still working for the rest of our endpoint
r
rp_st
08/15/2023, 12:34 PM
Hmm. If you can reproduce this reliably, it would be great to get the backend debug logs when it returns UNAUTHORIZED