function nodejs_auth_check_callback in Node.js integration 8
Same name and namespace in other branches
- 7 nodejs.module \nodejs_auth_check_callback()
Default Node.js auth check callback implementation.
1 string reference to 'nodejs_auth_check_callback'
- nodejs.config.yml in config/
install/ nodejs.config.yml - config/install/nodejs.config.yml
File
- ./
nodejs.module, line 518
Code
function nodejs_auth_check_callback($auth_token) {
return \Drupal::database()
->query("SELECT uid FROM {sessions} WHERE MD5(sid) = :auth_key", array(
':auth_key' => $auth_token,
))
->fetchField();
}