usermetadata.UpdateUserMetadata function should through an error if the user does not exist
r
rp_st
08/18/2022, 4:07 PM
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
aV
08/18/2022, 4:09 PM
ok then what possible error is thrown by usermetadata.UpdateUserMetadata?
aV
08/18/2022, 4:09 PM
i see it return an map and an err
r
rp_st
08/18/2022, 4:09 PM
well, mostly when something like the db is down. Or the supertokens core is down.