src/JWT.php
static public function getInternalToken() {
        static $token;
        if (is_null($token)) {
            $payload = [
                "exp" => time() + Moment::ONEHOUR,
                "sub" => Util::getModuleId() . "@" . Util::getApplicationId()
            ];
            $secret = self::getSecret(self::CONF_INTERNAL_SECRET_NAME);
            $token = \Firebase\JWT\JWT::encode($payload, $secret, self::ALG);
        }
        return $token;
    }
static public function getInternalToken() {
        static $token;
        if (is_null($token)) {
            $payload = [
                "exp" => time() + Moment::ONEHOUR,
                "sub" => Util::getModuleId() . "@" . Util::getApplicationId()
            ];
            $secret = self::getSecret(self::CONF_INTERNAL_SECRET_NAME);
            $token = \Firebase\JWT\JWT::encode($payload, $secret, self::ALG);
        }
        return $token;
    }
static public function getInternalToken ( ) { static $ token ; if ( is_null ( $ token ) ) { $ payload = [ "exp" => time ( ) + Moment :: ONEHOUR , "sub" => Util :: getModuleId ( ) . "@" . Util :: getApplicationId ( ) ] ; $ secret = self :: getSecret ( self :: CONF_INTERNAL_SECRET_NAME ) ; $ token = \ Firebase \ JWT \ JWT :: encode ( $ payload , $ secret , self :: ALG ) ; } return $ token ; }
Get Token used for service to service communication.
Setting standard time to 5 seconds for internal service to service communication.

@return string
@throws \Exception
Get Token used for service to service communication . Setting standard time to 5 seconds for internal service to service communication .