Now i don’t get any errors or logs in the console. It doesn’t say if there’s a error or the services are not yet available. I’ve tryed signed in and out which still doens’t give any feedback.
Nevermind! It says:
Services not yet available. Try again later
I’ve reached my maximum number of posts today and have to wait 10 hours. Can i contact you by email, skype or something @rhywden?
That’s because you still execute the login immediately. And if when the client executes his bit of code faster than the server (i.e. the server hasn’t gotten to the service setup yet) then you will run into this.
Put a login button on the page, use a Template event to deal with clicks on this button and then execute this code.