in modules/quanthub_core/src/UserInfo.php [86:99]
public function getToken() {
// For anonymous and admin we will use anonymous token.
if ($this->currentUser->isAnonymous() || $this->currentUser->id() == 1) {
if (!$this->cache->get(self::ANONYMOUS_TOKEN_CID)) {
$this->updateAnonymousToken();
}
$token = $this->cache->get(self::ANONYMOUS_TOKEN_CID)->data;
}
else {
$token = $this->openidConnectSession->getJsonWebTokens()->getAccessToken()->getValue();
}
return $token;
}