it is possible with the frontend SDK (the web-js one) to fetch user metadata?
k
it is possible with the frontend SDK (the web-js one) to fetch user metadata?
r
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
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
When you say updating the token doesn’t work, why is that?
k
for some odd reason it seems like it's UNAUTHORIZED
but the token is still working for the rest of our endpoint
r
Hmm. If you can reproduce this reliably, it would be great to get the backend debug logs when it returns UNAUTHORIZED
k
how do I enable debug logs? 🙂
r
2 Views