You are here

function nodejs_auth_get_token_callback in Node.js integration 8

Same name and namespace in other branches
  1. 7 nodejs.module \nodejs_auth_get_token_callback()

Default nodejs_auth_get_token() implementation.

1 string reference to 'nodejs_auth_get_token_callback'
nodejs.config.yml in config/install/nodejs.config.yml
config/install/nodejs.config.yml

File

./nodejs.module, line 536

Code

function nodejs_auth_get_token_callback(SessionInterface $session) {

  // The session id stored in the database is hashed. Use the same to generate
  // the token.
  return md5(Crypt::hashBase64($session
    ->getId()));
}