Supabase Auth User Metadata Updating / Fetching

Hey there,

I have this specific ID that checks the current ID the user belongs to (a group), that is connected to the user metadata address.

The user can change it, also the admins can change it, it also displays content conditionally based on the change.

The problem I’m facing is that, even though I changed the address, the content doesn’t change for the user live, because the metadata doesn’t seem to fetch properly again unless they re-login..

Even if I use the fetch user function, it returns the old metadata id, that’s somehow locked into the weweb system.

In the above screenshot, we can even see that the user address (coming from users section in weweb) starts with d1a9… as I changed that on the platform with a function I made, however, the previous address when the user originally logged in with still stays, even after fetching user again:

Is this a bug or am I missing something?

Hi Tsutsu :waving_hand:

Is this address field inside the “users” table inside the auth folder?

Most of the time is easier to create a secondary table where you store information about your users, because It’s easier to deal with changes. Ex: creating a “Members” table where you create columns for all the data your need from your users.

If it’s not, you could also see if this behavior changes in your published app compared to directly in the weweb editor.