How to fetch updated user data without refreshing or logging in?

I have a user able to update their account with a profile photo. This updates the user’s data in my xano table.

After updating the user table, I can’t figure out a way to fetch or update the current user for weweb’s front end.

I notice that ‘refreshing’ the page works, or logging out and in. But that’s a specific user action and I would rather have it done automatically after the update is complete.

Any ideas?

I was thinking a javascript workaround to force a refresh on the page. I tried location.reload(); but it doesn’t work very well within the editor, so I’m not sure how well it works when published. Is there a simple way in weweb to update the logged in user?

Hi, I think you can achieve that by calling the fetch user action

I must be blind, I was looking for something like this for hours…I could swear that wasn’t there…

Thanks!

Fetch User has a downside that if it fails (xano refuced request because of high server load) user gets logged out. Do you have alternative solution to update user or how to avoid logging out if action fails?