Find matches of a variable in custom usermeta

You can use WP user query.

Assuming that your meta_key is authmeta you can use the following code to find the users with meta key authmeta and value of your $var variable.

$user_query = new WP_User_Query( array( 'meta_key' => 'authmeta', 'meta_value' => $var ) );