Cannot read property 'token_data' of undefined

ros

#1

This error is shown when I try to make a jwt authentication with a node server:

TypeError: Cannot read property 'token_data' of undefined
     at performFetch.then.then (/usr/src/app/node_modules/realm/lib/user-methods.js:225:49)
     at <anonymous>
     at process._tickCallback (internal/process/next_tick.js:188:7)

I believe that is the same error that this questions:
https://stackoverflow.com/questions/51903633/cannot-read-property-token-data-of-undefined
https://stackoverflow.com/questions/49449693/unable-to-connect-to-realm-object-server-using-nodejs

You can replicate the error with this repo that I made:
https://github.com/artutra/ros-jwt-example

Using:
docker 18.03.1-ce
docker-compose 1.21.2
realm-object-server ^3.11.7
realm ^2.18.0
node 8.11.1

Someone knows how to fix it?