TOTP In a Nutshell

Step 1: A user submits an N-digit TOTP token to the application

Step 2: The application generates its own TOTP token and compares it with that provided by the user. If the tokens match, TOTP authentication is successful.