Whenever I sign in I immediately get signed out. can someone help me with this?
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?
Correct.
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.
If you havenât used the browser dev tools before and would like more detailed steps please let me know!
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
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:
-
Navigate to https://arcade.makecode.com then open the dev console.
-
Try to sign in.
-
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:
-
Expand Cookies on the right-hand side:
-
Look for this cookie in the list:
Happy anniversary @thegreatone
I do not see it.
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?
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.
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!