Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Password Recovery Links Versus One Time Codes Across 2 Devices

Imagine the page: password recovery completion has fallen below the media site's SLO, while the on-call dashboard still shows recovery requests being accepted. A reader starts on a laptop, opens the email on a phone, and cannot finish the session-bound link flow. This is a hypothetical alert, but it exposes the decision that matters when adding Google and GitHub social sign-in alongside password…

A reader begins on a laptop, checks their email on a phone, but is unable to complete the recovery process. This scenario highlights the importance of choosing the most effective recovery path for the user. Two options are available: a password reset link or a one-time code. Both methods can be secure if the credential is temporary and single-use.

The media site should default to the recovery method that aligns with the reader's device transition, and independently verify the expiration and single-use nature of the credential. Neither method should be deemed more secure simply because it appears more sophisticated. The organization must determine which accounts have a password that can be reset and which recovery requests correspond to Google or GitHub social sign-in.

The reader should be guided to the appropriate next step based on these determinations. The recovery process should be treated as an acceptance criterion, not an assumed behavior of a social login button. The recovery SLI should differentiate between a request being accepted and the reader successfully resetting their password. Instrumentation should track the transition between these events, with separate outcomes for each format.

A proposed matrix can be used to test the four possible journeys: a link opened on the starting device, a link opened on another device, a code entered on the starting device, and a code carried back from another device. Each journey should also be tested with reuse and attempts after expiration to ensure proper behavior. The completion ratio requires defining its denominator and observation window, as well as establishing a deadline for the product.

The capacity planning impact should be considered, as repeated starts can consume email and request capacity. The chosen recovery method should be based on the trade-off between typing effort and device transition compatibility. Regardless of the chosen method, the expiration and single-use properties must be enforced by the component accepting the recovery credential.

These properties cannot be achieved through formatting alone. The password reset path must clearly communicate the next steps to the reader, especially when using social sign-in providers like Google or GitHub. Account ownership and merging should not be inferred based on shared email addresses. Instrumentation should be implemented before changing the default format, to ensure accurate tracking of completion outcomes.

Finally, the integration contract should be reviewed to confirm the actual schema and prepare for instrumentation implementation.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

When do two Korean filenames in a ZIP become one after NFC normalization?

A ZIP from a supplier contains two files with names that look identical. Before deleting one or normalizing both names, check whether their full archive paths would match after normalization .

  • Two Korean filenames in a ZIP can become one after NFC normalization.
  • NFC converts text to precomposed syllables, while NFD uses decomposed jamo.
  • NFC introduces collisions when entries share a folder, not when in separate folders.

GPU Cluster Troubleshooting Guide for 2027: Isolating Originating Ranks in NCCL Timeouts and NVIDIA Xid Faults

Quick Answer: Never restart a crashed multi-node GPU job solely from a rank 0 NCCL watchdog timeout traceback. In synchronous distributed training, healthy victim ranks emit collective timeouts…

  • Inspect system logs for NVRM: Xid, OOM-killer, PCIe, Infiniband, and Mlx5 errors
  • Compare collective progression between ranks using PyTorch's Flight Recorder
  • Follow Denpex Distributed Training Hang Triage Guide if hardware logs are clean

More from Wednesday 25 November →