To use the component generate a new Secret using the "GenerateSecret" action per each unique user.
Make sure you save this secret in a secure way.
With the generated secret, generate a registration URL using the "GetCodeURL" to allow the users to set up their authenticator app. You can use the generated code and generate a QRCode with it to facilitate this step.
Normally, as part of the registration process, users are asked to read a code from their authenticator app in order to confirm the process was done correctly. Use the "ValidateCode" action to validate the code provided by the user using the secret previously generated. Please be aware, that as per the spec, you can provide up to one code in the future and one code in the past to accommodate for network delays and misaligned clocks.
You can also use the "GenerateCode" to get the expected code to be sent from the user.