Spring Boot, Java, Programming, Technology, 2fa.
(like Google Authenticator or Authy) at the time of setup. Here’s how to generate a strong secret key using the SecretGenerator class provided by java-otp: import dev.samstevens.totp.secret.SecretGenerator; @Service public class SecretService { private final SecretGenerator secretGenerator = new