SpinTheMic
Pro

Interview practice question

Adding TOTP-based MFA

Backend Engineering · Auth and Security · Intermediate

How would you implement authenticator-app (TOTP) MFA in your backend?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Generate secret per user, show QR (otpauth URI).
  • Verify a code before enabling.
  • Store secret encrypted.
  • Check code with small time window; prevent reuse.
  • Recovery codes, rate limiting.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics