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