Logging in with a code
- The backend makes six digits from a cryptographically random source and stores a hash of the code with an expiry and an attempt counter.
- The backend sends the code through telkit, with the login attempt's id as the Idempotency-Key.
- The user types the code. The backend compares, counts the attempt and deletes the code after the first correct use.