aV
08/18/2022, 4:02 PMgo
// add the account id to the user's supertoken metadata
_, err = usermetadata.UpdateUserMetadata(req.UserId, map[string]interface{}{
"account_id": newAcc.Id,
})
if err != nil {
logx.Errorf("error updating user metadata: %v", err)
return nil, xerr.UpdateUserMetadataFailed
}
but the problem here is that when I try to create an account with a fake UUID, a successful metadata update happens even if no user with such id exists on supertokens. I am trying to through an error if the userid does not exists but it seems that no err is returned by above function all error handling is skipped.
here is the list of users registered in supertokens from frontend: