Add iframe command `login-with-token` (#4746)

pull/4749/head
Rodrigo Nascimento 9 years ago committed by GitHub
parent fd7b9b38fa
commit d4d8338588
  1. 8
      packages/rocketchat-ui/lib/iframeCommands.js

@ -28,6 +28,14 @@ const commands = {
customLoginWith.call(Meteor, {'redirectUrl': customRedirectUri}, customOAuthCallback);
}
}
},
'login-with-token'(data) {
if (typeof data.token === 'string') {
Meteor.loginWithToken(data.token, function() {
console.log('Iframe command [login-with-token]: result', arguments);
});
}
}
};

Loading…
Cancel
Save