• Skip to main content
  • Skip to primary navigation
  • Skip to footer
TechRT Logo

TechRT

Technology, Real Time

  • Home
  • Blog
    • Gaming
    • Internet
    • Technology
    • Windows
  • About
  • Contact
  • Deals and Offers
TechRT Logo
FacebookPostLinkedInPinShares4
Why Is My PS4 So Loud
Up Next

Why Is My PS4 So Loud? (FIX PlayStation Fan Noise)

How to Use the microsoft.com/link Code to Sign In to Xbox

TechRT Gaming

How to Use the microsoft.com/link Code to Sign In to Xbox

Last updated on November 23, 2026 IST
Avatar of Tushar Thakur Written by Tushar Thakur
Avatar of Tushar Thakur Reviewed by Rajesh Namase

This article has been updated 2 times. Last updated on November 23, 2026

  • Sep 2026: Revised the sign-in guide into four numbered steps and added Microsoft's default sign-in window of 15 minutes for device codes, with what to do when a code expires.
  • Sep 2026: Added device code phishing context from Microsoft Threat Intelligence, including Storm-2372 attacks ongoing since August 2024 and a 2026 campaign that beat the code expiry.
  • Sep 2026: Added password reset steps and how to link a controller or set an Xbox PIN, plus Microsoft's Store download limit of 10 devices per account.

From the moment a device requests a sign-in code, the user has 15 minutes to sign in under Microsoft’s default for device code sign-in. The microsoft.com/link code on your Xbox screen is that kind of code. You type the code on your phone or PC, and once you enter the code displayed on your app or device, it will give you access to your account, with no password typed letter by letter with a controller.

Below you’ll find the steps, the fixes for a code that expires or gets rejected, and how to reset a forgotten password before you start. You’ll also see the scams built around these codes, because the page you type them into carries its own warning: Do not enter codes from sources you don’t trust.

  • Key Takeaways
  • What is the microsoft.com/link code?
    • How long does a microsoft.com/link code last?
    • Is microsoft.com/link safe?
  • Step 1: Start Sign-In on Your Xbox and Get the Code
  • Step 2: Open microsoft.com/link on Your Phone or PC
  • Step 3: Enter the Code and Sign In to Your Microsoft Account
  • Step 4: Confirm Access and Check Your Xbox Profile
  • microsoft.com/link Code Not Working? Fixes for Expired or Rejected Codes
  • Forgot Your Microsoft Account Password? Reset It Before You Enter the Code
  • Device Code Phishing: When a microsoft.com/link Code Is a Scam
  • Skip the Code Next Time: Link a Controller or Add a PIN
  • Can I sign in to the same Xbox profile on more than one console?
  • Conclusion

Key Takeaways

  • From the moment the request is sent, the user has 15 minutes to sign in under Microsoft’s default, so a code that sat on screen too long needs replacing.
  • The code sign-in follows RFC 8628, the OAuth 2.0 Device Authorization Grant, which covers smart TVs, media consoles, digital picture frames, and printers.
  • Microsoft says Storm-2372 device code phishing attacks appear to have been ongoing since August 2024, so enter only a code your own screen shows.
  • Microsoft Defender Security Research described a 2026 campaign whose dynamic code generation circumvented the standard 15-minute expiration window for device codes.
  • Reset a forgotten password before you start: passwords should be at least 8 characters long.
  • You can add up to 10 different ways to verify sign-in, including a passkey, which Microsoft describes as phish-resistant.

What is the microsoft.com/link code?

The microsoft.com/link code is Microsoft’s short sign-in code for devices where typing a password is awkward. Instead, the device has the user visit a webpage in a browser on another device to sign in.

Microsoft’s identity platform supports the device authorization grant, which allows users to sign in to input-constrained devices such as a smart TV, IoT device, or a printer.

That grant is an open standard. RFC 8628 from the Internet Engineering Task Force (IETF), dated August 2019, enables OAuth clients on devices like smart TVs, media consoles, digital picture frames, and printers to obtain user authorization by using a user agent on a separate device. An Xbox is exactly that kind of media console, with a controller where a keyboard would be, so the code saves you from spelling out an email and password on an on-screen keyboard.

What is the microsoft.com/link code?
Code
Where you get it
What it does
microsoft.com/link code
On the Xbox or TV screen during sign-in
Gives that device access to your Microsoft account
Security code
Sent to an email address or phone number in your security info
Confirms account changes such as a password reset
Xbox profile PIN
Created in your Xbox account settings
Signs you in as an alternative to your Microsoft email and password

Source: Microsoft Support, Xbox Support, 2026

Before you start: Turn on the Xbox and bring up the sign-in screen, keep a phone or PC with a browser nearby, and have the email address and password for your Microsoft account ready.

How long does a microsoft.com/link code last?

Microsoft’s default gives you a generated device code that remains valid for only 15 minutes. Short lifetimes are deliberate, and RFC 8628 notes that the rate-limiting and finite lifetime on the user code place an artificial limit on the amount of work an attacker can do. If you’re not sure how long a code has been on screen, request a new one.

Is microsoft.com/link safe?

Yes, when the code is yours. The page sits at https://www.microsoft.com/link under the Microsoft account title, and it tells you plainly that once you enter the code displayed on your app or device, it will have access to your account. The page is safe; the risk is typing a code that came from anywhere other than your own console or TV.

Step 1: Start Sign-In on Your Xbox and Get the Code

Your Xbox shows the code only after you choose to sign in from another device. Under Microsoft’s device code flow, the client must first check with the authentication server for a device and user code used to initiate authentication, so the console asks Microsoft for a fresh code and then displays it with the address to enter it at.

Xbox sign-in screen with the Use another device option marked
On the Xbox sign-in screen, choose Use another device to get the code.

Here’s how to get the code on screen:

  1. Press the Xbox button on your controller to open the guide.
  2. Open Profile & system and pick the option to add or switch a profile.
  3. Choose to sign in using another device, such as your phone or PC, instead of typing your password.
  4. Leave the code on the TV. You’ll type it in during Step 3.

By the way, sign in with the profile you already have. Xbox Support advises that if you have an Xbox profile on another device and want to keep your profile history (gamertag, gamerscore, achievements, and so on), make sure you sign in using the same profile. If the console itself won’t start, sort out the power problem first with our guide to an Xbox One that won’t turn on but beeps.

Step 2: Open microsoft.com/link on Your Phone or PC

The code goes into a browser on another device, and according to the RFC 8628 standard, for many users, their nearest Internet-connected device will be their mobile phone. Open any browser on a phone, tablet, or PC and type the address yourself.

Microsoft code page with the heading, code box and Allow access button numbered 1 to 3
The microsoft.com/link page shows the Enter code to allow access heading (1), the code box (2), and the Allow access button (3).

Open a new browser tab and type in this URL exactly: microsoft.com/link. A few things to check before you enter anything:

  • Type the address into the address bar yourself instead of tapping a link from an email, text, or chat message.
  • Confirm the page heading reads Enter code to allow access.
  • Use your own phone or computer if you can, so you aren’t signing in to your Microsoft account on someone else’s browser.

Step 3: Enter the Code and Sign In to Your Microsoft Account

On Microsoft’s code page, the code comes before your account details.

Here are the steps for that:

  1. Type the code exactly as your TV shows it, then select Allow access.
  2. Enter the email address or phone number for the Microsoft account tied to your Xbox profile.
  3. Enter your password, or approve the sign-in with the verification method you set up.
  4. Read the permission prompt and allow access only if you started this sign-in on your own console.

Pro tip: Don’t worry if the code includes a dash. The device code standard says dashes or other punctuation may be included for readability, so focus on getting every letter and number right.

Step 4: Confirm Access and Check Your Xbox Profile

Your Xbox finishes signing in on its own once you approve the request on the other device. Microsoft’s documentation for the flow says that once the user signs in, the device is able to get access tokens and refresh tokens as needed, so you don’t type anything else on the console.

Look back at the TV and check that the profile you signed in with is the one now active. If the console greets you with a Signed out elsewhere message, Xbox Support says this message means that you used a different Xbox console the last time you signed in to your profile, and the message is just a notification.

That’s it. If the screen stays black after the profile loads, work through our Xbox One black screen troubleshooting steps before you blame the sign-in.

microsoft.com/link Code Not Working? Fixes for Expired or Rejected Codes

Start with the clock when Microsoft rejects a code. Microsoft Learn lists expired_token as the state where the value of expires_in has been exceeded, and authentication is no longer possible with device_code, and the default window is 15 minutes to sign in. Get a new code on the Xbox and enter it straight away.

FIG. 01 · Source: Microsoft Learn, 2026 FIG. 01 Microsoft Learn · 2026 Default Time to Sign In With a Device Code (minutes) 15 minutes SOURCE Microsoft Learn, 2026

The device code flow has a few other documented states, and each lines up with something you can fix. The device code flow is a polling protocol, so errors served to the client must be expected prior to completion of user authentication, which is why the console can sit waiting while you finish on your phone.

microsoft.com/link Code Not Working? Fixes for Expired or Rejected Codes
What happened
Documented state
What to do
The code sat too long on screen
Expired: authentication is no longer possible
Request a new code on the Xbox and enter it right away
The console keeps waiting
Pending: the user hasn’t finished authenticating
Finish the sign-in and approval on your phone or PC
You pressed No or Cancel
Declined: the end user denied the request
Start the sign-in again on the Xbox

Source: Microsoft Learn device code flow errors, 2026

If a fresh code still fails, try these in order:

  • Check the Xbox service. This may mean that there’s a problem with the Xbox service, or that your console or PC has encountered an unexpected error when you see error 0x87DD0005, and the help page’s first two fixes are to check the Xbox status and restart your Xbox or PC.
  • Run Sign-in Helper. It will ask you for your email address or phone number, check your account for any problems, and tell you what you need to do to sign in.
  • Wait a moment for security codes. Generally, it only takes a few moments to receive the code when Microsoft sends one.

If the code you’re stuck on came from Minecraft rather than the Xbox sign-in screen, our aka.ms/remoteconnect fix covers that separate page.

Forgot Your Microsoft Account Password? Reset It Before You Enter the Code

Xbox Support sends you to Microsoft’s password reset page when you can’t remember the password for the account behind your Xbox profile. The first step is to go to Reset your password and enter your email address, and the recovery page itself says We can help you reset your password and security info.

Open the Microsoft account recovery page at this URL in the same browser you’ll use for the code, then:

  1. Enter your email address on the Reset your password page.
  2. Tell us where you’d like us to send a security code (email or phone number), as the page puts it.
  3. Once you receive your security code, you’ll be prompted to choose a new password and enter it twice.

Pick a strong one. Xbox Support says passwords should be at least 8 characters long and should contain a mix of uppercase and lowercase letters, numbers, and symbols. Note that you must have your Microsoft account email address to reset your password, and if you’ve forgotten this email address, you’ll need to recover it before you reset your password.

If Minecraft also bounces you to a Microsoft account settings page, our aka.ms/accountsettings error guide walks through that login loop.

Device Code Phishing: When a microsoft.com/link Code Is a Scam

Never enter a code that someone else sends you, even on Microsoft’s real page. Microsoft Threat Intelligence tracks a group called Storm-2372 whose attacks appear to have been ongoing since August 2024, and Microsoft explains the trick: the threat actor generates a legitimate device code request and tricks the target into entering it into a legitimate sign-in page.

The page being real is what makes this work. This grants the actor access and enables them to capture the authentication (access and refresh) tokens that are generated, and the actor can also use these phished authentication tokens to gain access to other services where the user has permissions, such as email or cloud storage, without needing a password. The Microsoft account on your Xbox is often the same one behind your email and files, so a scam code can reach well past your gamertag.

The standard saw this coming. RFC 8628 warns that an attacker might send an email instructing the target user to visit the verification URL and enter the user code.

FIG. 02 · 4 EVENTS · Source: IETF RFC 8628, Microsoft Security Blog, 2026 FIG. 02 · 4 EVENTS IETF RFC · 2026 Key Events, 2019 to 2026 2019 IETF publishes RFC 8628, the OAuth 2.0 Device Authorization Grant 2024 Storm-2372 device code phishing attacks begin, according to Microsoft 2025 Microsoft observes the Storm-2372 device code phishing campaign 2026 Microsoft reports an AI-enabled campaign that circumvented the 15-minute code expiry SOURCE IETF RFC 8628, Microsoft Security Blog, 2026

The short code lifetime is used to limit these attacks. Microsoft Defender researchers note that with pre-generated codes, if the user opened the email even 20 minutes after it was sent, the attack would automatically fail due to the expired code. The 2026 campaign got around that, using dynamic code generation that circumvented the standard 15-minute expiration window for device codes. In an update dated July 31, 2026, Microsoft has further assessed Storm-2372 to be an initial access operations sub-cluster of Midnight Blizzard.

Never enter a code someone sends you: Enter a microsoft.com/link code only when it appears on your own Xbox or TV and you started the sign-in yourself, which helps reduce the risk of handing over your account. RFC 8628 recommends that sign-in services inform the user that they are authorizing a device during the user-interaction step and confirm that the device is in their possession. If an email, text, or chat message gives you a code to type in, don’t.

Skip the Code Next Time: Link a Controller or Add a PIN

Xbox Support offers a faster route once you’re signed in: once you’ve linked a controller, you’ll automatically be signed in as soon as you turn on that controller. You set it up in the Sign-in, security & PIN settings, so you won’t need a code every time you sit down to play.

Here’s how to link your controller:

  1. Press the Xbox button to open the guide.
  2. Go to Profile & system > Settings > Account > Sign-in, security & PIN.
  3. Pick This controller signs in, and then choose Link controller to link the controller you’re using.

Of course, pick a controller nobody else grabs, because only one person can link their profile to a controller at a time.

A PIN is the other shortcut. Xbox Support describes it as an added layer of security that you can use as an alternative to your Microsoft email and password, and your PIN is tied to your Xbox profile so that you can use it with any Xbox console that you sign in to.

On the Microsoft account side, add a passkey. Microsoft says passkeys are secure, phishing-resistant replacements for your password, which means they can’t be guessed or stolen. While you’re in your account, tidy up old hardware too: Microsoft advises that you should unlink any devices you no longer use, because you can only download Microsoft Store apps and content to 10 devices attached to your account.

Can I sign in to the same Xbox profile on more than one console?

Yes, and Xbox Support says you can sign in to multiple devices at once, such as an Xbox One console, Xbox Series X|S console, mobile device, Windows device, or through cloud gaming. However, there are exceptions to this rule, mainly for consoles that household members share or friends’ devices you use often.

When you move between consoles, expect the Signed out elsewhere notice from Step 4 on the one you used before. Use the same code to sign in on each console, and link a controller on the one you play on most.

Conclusion

The microsoft.com/link code is a shortcut, not a password. Start sign-in on the Xbox, type the code at microsoft.com/link on your phone or PC, and finish signing in within Microsoft’s default of 15 minutes to sign in. If it fails, get a fresh code before you try anything else, and reset your password if you’ve lost it.

Enter a code only when your own screen shows it, and link a controller or set a PIN so you need codes less often. If a menu on your console looks different from these steps, tell us in the comments which screen you saw.

References

  • Microsoft account: Enter code to allow access
  • OAuth 2.0 device authorization grant
  • IETF RFC 8628: OAuth 2.0 Device Authorization Grant
  • Inside an AI-enabled device code phishing campaign
  • Sign in to Xbox
  • Sign in with a personal controller
  • Signing in on multiple devices at the same time
  • Reset or recover your lost Microsoft account password
  • Microsoft account: Recover your account
  • Signed out elsewhere message
  • Manage a PIN for your Xbox profile
  • Manage devices used with your Microsoft account
  • Microsoft account security info and verification codes
  • Error 0x87DD0005
  • You did not receive a security code

Sharing is Caring

FacebookPostLinkedInPinShares4
Avatar of Tushar Thakur

Tushar Thakur

Tushar Thakur co-founded TechRT. He writes about technology, gaming and artificial intelligence here, including statistics roundups. He started XtendedView on 14 October 2011, in his final year of a Bachelor of Engineering at KGCE in Mumbai, and has blogged full time since graduating in May 2012. He also co-founded WebGeeksMedia. SEO and digital marketing have been his focus for more than a decade.

Category

Gaming

Tags

Xbox

Reader Interactions

No Comments Logo

Leave a comment

Have something to say about this article? Add your comment and start the discussion.

Add Your Comment Cancel reply

Comment (required)

TechRT Footer Logo TechRT Footer Text Logo

Footer

About

Hello and welcome to TechRT. TechRT, which stands for Technology, Real Time, aims to be a holistic space for all things tech. We talk about anything and everything that comes under the umbrella of ‘tech’ and ‘science.’

Founded and managed by some of the most passionate tech geeks with over a decade of industry experience, TechRT wants to become more than a resource hub. We aspire to cultivate a thriving community dedicated to delivering unparalleled technology experiences for all.

Links

  • About
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms
  • Fact-Check Policy
  • Editorial Policy
  • Corrections Policy

Follow

Cloud Hosting by Cloudways

Copyright © 2016–2026 TechRT. All Rights Reserved. All trademarks are the property of their respective owners.

Back to top