Error Occurred: This error occurred when the flow tried to execute Apex class TOTPPlugin: Invalid shared key You can look up exceptions in the Apex Developer Guide.
TOTPPlugin accesses the Salesforce TOTP methods, generates a time-based secret key with a QR code, and validates the TOTP. The Apex class for TOTPPlugin is available in the login flow sample package.
The legacy Apex action has these input parameters.
OTP_INPUT–The TOTP token that the user provides.
OTP_REGISTRATION_INPUT–The TOTP token that the user provides when first registering.
SECRET_INPUT–The secret key used to generate the TOTP.