You are here

function auth0_user_delete in Auth0 Single Sign On 8.2

Same name and namespace in other branches
  1. 8 auth0.module \auth0_user_delete()
  2. 7.2 auth0.module \auth0_user_delete()

Handle users deletion, it should delete the Auth0 profile.

File

./auth0.module, line 30
Module definition

Code

function auth0_user_delete($account) {
  db_delete('auth0_user')
    ->condition('drupal_id', $account->uid->value)
    ->execute();
}