Signing in should not require visitors to overcome barriers before they can use your website. A password field that blocks paste, a verification code that must be retyped, or an error message that only appears in red can keep someone from reaching their account.

Accessible authentication means looking at the entire journey, from the first sign-in screen to verification and account recovery. Here are practical steps your team can take without treating accessibility and security as competing goals.

Understand the WCAG Requirements

The Web Content Accessibility Guidelines (WCAG) 2.2 include two criteria specifically about authentication. Both address cognitive function tests, such as remembering a password, solving a puzzle, or transcribing a code.

Accessible Authentication (Minimum), criterion 3.3.8, is Level AA. If a step requires a cognitive function test, the criterion allows approaches such as an alternative authentication method or a mechanism that helps the person complete it. It also includes exceptions for recognizing objects and identifying non-text content the user provided.

Accessible Authentication (Enhanced), criterion 3.3.9, is Level AAA. It does not include those two exceptions. Review the criteria and their explanations when evaluating your own flows: meeting one requirement does not guarantee that the rest of the experience is accessible.

Let Password Managers and Paste Work

A password can be difficult to remember or type accurately. Password managers and copy and paste can reduce that burden without asking users to choose weaker passwords.

  • Use visible, persistent labels for username and password fields, and associate each label with its input.
  • Use appropriate input types and autocomplete attributes so browsers and password managers can recognize the fields.
  • Do not block pasting into password or verification-code fields.
  • If you offer a show-password control, make it keyboard accessible and give it a clear name and state.

Test with real password managers and browsers. A field that looks conventional can still be difficult to fill if its markup or scripts interfere with autofill.

Make Verification Codes Easier to Use

A code sent by email or text can introduce another transcription step. Let people paste or autofill the entire code. If the interface displays separate boxes for each digit, verify that a full pasted code is accepted and that the boxes work with a keyboard and screen reader. A single clearly labeled field is another option.

Check what happens when a code expires, a message is delayed, or someone requests a new code. Explain the next step in text, make the resend control accessible, and consider whether the timing gives people enough opportunity to complete the task. Avoid requiring a particular phone, device, or sensory ability as the only way to proceed.

Offer Accessible Sign-In Options

Consider options that reduce reliance on memory and transcription. Passkeys can let a person use a device’s authentication method instead of typing a password. An email sign-in link can also avoid retyping a code. W3C describes an email-link approach as a sufficient technique for accessible authentication when implemented as described.

Neither option is a shortcut to a fully accessible login. Devices, email access, authentication prompts, and individual needs vary. Test the actual journey and provide other usable options where needed. Apply the same care to multi-factor authentication, registration, and account recovery, not just the initial login.

Make Errors and Recovery Clear

When a sign-in attempt fails, explain the problem in text and provide a useful next step. For example, a message can say that the email address or password was not recognized and offer a link to reset the password. Do not rely on color alone to communicate an error.

Make sure error messages are available to screen reader users and that focus is handled sensibly after submission. Provide correction suggestions when appropriate, while avoiding details that would compromise security. Test the recovery process with the same care as sign-in: a visitor who cannot use the reset link or verification step is still locked out.

Test the Complete Journey

Automated checks can identify some markup problems, but they cannot establish that a person can complete every authentication step. Add these checks to your manual testing:

  1. Navigate sign-in, verification, and recovery using only a keyboard. Check that focus is visible and controls can be reached and operated.
  2. Use a screen reader to check field labels, instructions, errors, and changes after submission.
  3. Fill credentials with a password manager and paste a complete verification code.
  4. Try an expired code, an incorrect password, and account recovery. Confirm that instructions and next steps are clear.
  5. Test available alternatives on supported devices and browsers, and include people with disabilities in testing where possible.

Record barriers, assign fixes, and test again after changes. For more general form guidance, see our accessible forms guide and keyboard accessibility guide.

Keep Accessibility on Your Team’s Radar

A usable login is one part of an accessible website. Sign up for Accessible Metrics to help your team monitor website accessibility and track its progress.