When using the SingleSignOnMobile plugin in my mobile app, I noticed it was taking some time to process my requests. On further inspection, I noticed that multiple server calls are made before redirecting to the SSO page.

By looking at the code, I can easily tell that GetToken and GetRequestDomain are unnecessary server side calls.
- GetToken is used to do a string split. This can be done client side in javascript. ~400ms of processing would be saved.

- GetRequestDomain is used to get the current host. This is also achievable in javascript (look at window.location). Another ~200ms would be saved.
In short, currently OutSystems apps that make use of this plugin take an extra half a second (or more) to process because the plugin code has some serious performance problems. This looks very easy to fix, just by replacing server calls with javascript.
Can a new version of this plugin be released that tackles these issues?