Can not log in

Whenever I sign in I immediately get signed out. can someone help me with this?

2 Likes

Making sure I understand: You’re able to successfully sign in with your Microsoft or Google account, but when it takes you back to Arcade, you’re not signed in there?

2 Likes

Correct.

2 Likes

Are you familiar with the browser dev console? They’re accessible by pressing F12 in the browser. If you could open the console, select the “Preserve log” checkbox, go through the login process, then report any errors you see printed to the console output, that might give us some clue about what’s happening.

image

If you haven’t used the browser dev tools before and would like more detailed steps please let me know!

2 Likes

Got these errors:
Received disconnect for undefined —serviceworker:1
Access to fetch at ‘https://dc.services.visualstudio.com/v2/track’ from origin ‘https://arcade.makecode.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
The FetchEvent for “https://dc.services.visualstudio.com/v2/track” resulted in a network error response: the promise was rejected.
Uncaught (in promise) TypeError: Failed to fetch at —serviceworker:1:8348
Received disconnect for undefined —serviceworker:1
Browser: chrome 114.0.0.0 on windows pxtapp.js:1
workspace: browser pxtapp.js:1
PouchDB adapter: idb pxtapp.js:1

4 Likes

Thank you for that info. None of the errors are directly related to login, but the message about CORS being disabled might be a clue.

I wonder if Arcade was unable to write the auth cookie for some reason. That would certainly cause this. Can you please check for the existence of a cookie named x-mkcd-auth-token? To do that:

  1. Navigate to https://arcade.makecode.com then open the dev console.

  2. Try to sign in.

  3. After sign in, once you’re redirected back to Arcade, look for the cookie. Cookies are located under the Application tab in the dev console:
    image

  4. Expand Cookies on the right-hand side:
    image

  5. Look for this cookie in the list:
    image

1 Like

Happy anniversary @thegreatone

3 Likes

I do not see it.

1 Like

Thank you for verifying that. Was this on a school computer, or other environment where the browser might be subject to restrictions by an IT dept? I wonder if a policy is in place to filter or exclude browser cookies. When you were checking for x-mkcd-auth-token, did you see many other cookies listed?

1 Like

I did not see very many other cookies but that was probably because I erased the cookies trying to troubleshoot this. Also this is on my own computer.

1 Like

What operating system and browser are you using?

I run Chrome version 114.0.0.0 on Windows.

As a comparison, are you able to sign into https://makecode.microbit.org?

Yes. I was able to sign into there succesfully.

That is interesting, and encouraging. microbit and Arcade use a shared authentication system, so in theory, Arcade should work for you too.

I’d like to connect directly to troubleshoot further. I will follow up with you in a DM. If you’re interested in pursuing this further, please respond there.

Thanks!