# Can not log in

**URL:** <https://forum.makecode.com/t/can-not-log-in/20433>\
**Category:** Help\
**Created:** [June 5, 2023, 5:41pm UTC](https://forum.makecode.com/t/can-not-log-in/20433 "2023-06-05T17:41:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 5, 2023, 5:41pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/1 "2023-06-05T17:41:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 5, 2023, 5:53pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/2 "2023-06-05T17:53:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 6, 2023, 3:21am UTC](https://forum.makecode.com/t/can-not-log-in/20433/3 "2023-06-06T03:21:33Z")

</div>

Correct.

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 6, 2023, 10:32pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/4 "2023-06-06T22:32:05Z")

</div>

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](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/adc6a66589baa859de7819160698d0f5093d706f.png)

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

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 8, 2023, 5:03am UTC](https://forum.makecode.com/t/can-not-log-in/20433/5 "2023-06-08T05:03:25Z")

</div>

Got these errors:  
Received disconnect for undefined —serviceworker:1  
Access to fetch at ‘[https://dc.services.visualstudio.com/v2/track’](https://dc.services.visualstudio.com/v2/track%E2%80%99) from origin ‘[https://arcade.makecode.com](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”](https://dc.services.visualstudio.com/v2/track%E2%80%9D) 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

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 8, 2023, 8:26pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/6 "2023-06-08T20:26:46Z")

</div>

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](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](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/18ec634e00a3338a14fd186f331046ee97c0b0e6.png)

4. Expand Cookies on the right-hand side:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7bf8928ced94012d1a08c7d4458d380c69be8f13.png)

5. Look for this cookie in the list:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/087081c20f568ce58a655fe6db58cd6bd1cba81e.png)

---

<div class="post-metadata">

**Author:** ![danger\_kitty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danger_kitty/32/32006_2.png) [@danger\_kitty](https://forum.makecode.com/u/danger_kitty)\
**Post date:** [June 8, 2023, 11:23pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/7 "2023-06-08T23:23:17Z")

</div>

Happy anniversary @thegreatone

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 9, 2023, 5:41pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/8 "2023-06-09T17:41:43Z")

</div>

I do not see it.

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 11, 2023, 2:50am UTC](https://forum.makecode.com/t/can-not-log-in/20433/9 "2023-06-11T02:50:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 12, 2023, 1:55pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/10 "2023-06-12T13:55:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 12, 2023, 10:16pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/11 "2023-06-12T22:16:33Z")

</div>

What operating system and browser are you using?

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 13, 2023, 4:19pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/12 "2023-06-13T16:19:05Z")

</div>

I run Chrome version 114.0.0.0 on Windows.

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 19, 2023, 6:55pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/13 "2023-06-19T18:55:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [June 19, 2023, 9:34pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/14 "2023-06-19T21:34:14Z")

</div>

Yes. I was able to sign into there succesfully.

---

<div class="post-metadata">

**Author:** ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)\
**Post date:** [June 21, 2023, 8:14pm UTC](https://forum.makecode.com/t/can-not-log-in/20433/15 "2023-06-21T20:14:31Z")

</div>

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!
