User identifier, typically an email address or username.
OptionalalgorithmHash algorithm used by the authenticator.
OptionalbyteSecret length in bytes when generating a new secret (minimum 16). Defaults to an algorithm-appropriate size.
OptionaldigitsNumber of digits in the setup URI (6 or 8).
Service or application name displayed by authenticator apps.
OptionalperiodTime step in seconds.
OptionalsecretCanonical unpadded Base32 secret of at least 16 bytes to embed in the URI. If omitted, a new secret is generated.
Options for generating an otpauth URI and secret.