Sign in
twitch

Twitch Security Settings: Enable Two-Factor Authentication and Reset Your Stream Key

Protect your login with an authenticator app and set up your encoder without exposing your stream key. If your key appears on stream or you lose a device, follow the steps to regain control and test your stream.

4 min read
Twitch Security Settings: Enable Two-Factor Authentication and Reset Your Stream Key

Know what each credential protects

  1. Sign in to Twitch on a device you control. Select your profile picture → Settings → Security and Privacy. Check that you can receive email at your linked address and still have access to your recovery phone number. If you use your Twitch password on another site, change it to a unique one first.
  2. An authenticator code verifies a sign-in. A stream key lets an encoder broadcast to your channel. Someone with your key may be able to stream to your channel without signing in. Enabling two-factor authentication (2FA) does not invalidate an exposed key; you need to reset it.
A purple pixel-art speech bubble mascot sorts a door latch and a curtain cord in a toy theater, illustrating the difference between signing in and going live.

Enable 2FA with an authenticator app

  1. Under Security and Privacy, find Two-Factor Authentication and start setup. Enter your phone number, check the country or region code, and enter the verification code sent by text. Continue to authenticator setup rather than stopping after phone verification.
  2. Add an account in your authenticator app and scan the QR code on the Twitch page. If Twitch offers a manual setup key, you can enter that in the app instead. Enter the app’s current code on Twitch. Do not share the QR code, setup key, or one-time code with support staff or anyone managing your channel.
  3. Check that Twitch shows 2FA as enabled. Keep your current session open and test a sign-in in a private browser window. When switching phones, transfer the authenticator and test a code from the new phone before wiping the old one. Review the 2FA tool guide before the transfer, but never enter your actual setup key into an online tool.
A purple pixel-art speech bubble mascot fits a gear into place in a clock tower, illustrating why authenticator codes need an accurate clock.

Configure your encoder without showing the key on stream

  1. Stop screen sharing, recording, and streaming. Select your profile picture → Creator Dashboard → Settings → Stream and locate Primary Stream Key. If your encoder offers a Connect Account option for Twitch, use it so you don’t have to copy the key.
  2. If you need to enter the key manually, select Copy rather than Show. In your encoder’s stream settings, select Twitch, paste the key into the stream key field, and apply the changes. Clear your clipboard and its history. Keep the key out of scene names, shared documents, support ticket screenshots, and team chats.
A purple pixel-art speech bubble mascot slides a gold key through an opaque beeswax chute into a hive lock, keeping the key out of sight.

Reset an exposed stream key immediately

  1. If the key appeared on stream, was posted in chat, or was stored on a lost device, treat it as compromised. In the Creator Dashboard, select Reset next to Primary Stream Key and confirm. Deleting a screenshot or changing your login password is not a substitute for resetting the key.
  2. Save the new key only in primary and backup encoders you still control. If the key appeared on stream, check your past broadcasts and clips and remove any that show it. Removing footage does not invalidate the old key; resetting it does.
  3. Run a short test stream. In the dashboard, confirm you’re live on the intended channel with the expected video and audio, then stop streaming. If you see activity you don’t recognize, also change your password, disconnect unfamiliar apps in Settings, and check your linked email address and phone number.
A purple pixel-art speech bubble mascot melts an old ice key in a workshop and takes out a differently shaped one, illustrating a stream key reset.

Troubleshooting and final checks

ProblemWhat to do first
Authenticator codes keep failingEnable automatic time on your phone, select the correct Twitch account in the app, and try the next code.
You lost your phone and can’t sign inUse the recovery options on the sign-in page. If your number is no longer active, look up 2FA recovery in the Twitch Help Center.
Your encoder reports an error after a key resetCheck the selected service and channel. Copy the new key again, save it in the encoder, then stop and restart the stream.
  • Login: Confirm that sign-in works in a private window, your recovery number is active, and no copy of the QR code remains in your photos or cloud storage.
  • Streaming: Confirm that both primary and backup encoders have the new key, the test feed came from the intended device, and the dashboard now shows the channel as offline.