You are here

function auth0_find_auth0_user in Auth0 Single Sign On 7.2

Return the uid of the user with the given Auth0 id.

1 call to auth0_find_auth0_user()
auth0_login_auth0_user in ./auth0.module
Log in an Auth0 authenticated user.

File

./auth0.module, line 566

Code

function auth0_find_auth0_user($id) {
  $rs = db_select('auth0_user', 'a')
    ->fields('a', array(
    'drupal_id',
  ))
    ->condition('auth0_id', $id, '=')
    ->execute()
    ->fetchAssoc();
  return empty($rs) ? FALSE : $rs['drupal_id'];
}