usermetadata.UpdateUserMetadata function should th...
# support-questions-legacy
a
usermetadata.UpdateUserMetadata function should through an error if the user does not exist
r
Hey! So the way we have built it is that it would work even if the user does not exist (as you see). If you want to check if the user exists, you can check that using getUserById function from the auth recipe you use. If that returns
nil
, then you can throw an error.
a
ok then what possible error is thrown by usermetadata.UpdateUserMetadata?
i see it return an map and an err
r
well, mostly when something like the db is down. Or the supertokens core is down.
a
ok
thanks
r
cool!