User logged out of server (REST API +IFrame commands)

I’m trying to embed Rocketchat in an iframe and automatically create accounts for users and log them in. I’m using the REST API to create the accounts and log them in. I’m using the postMessage command to then log them into the rocketchat site running in the iframe.

All of the code runs just fine and the account is created properly. However, when I try to log into the iframe using the token I got through the REST API login, I see the following in my console:

details: undefined
error: 403
errorType: “Meteor.Error”
isClientSafe: true
message: “You’ve been logged out by the server. Please log in again. [403]”
reason: “You’ve been logged out by the server. Please log in again.”

Anyone know how I can fix this?

Hi MindTo… I have the same problem. Did you make it run? what did you do?

cheers