Initializerhummingbird-auth 2.0.2HummingbirdOTP
init(secret:length:hashFunction:)
Initialize HOTP
init(secret: String, length: Int = 6, hashFunction: OTPHashFunction = .sha1)
Parameters
- secret
Secret known by client and server
- length
Length of password
- hashFunction
Hash function to use
If you are using the Google AuthenticatorMiddleware you should choose the default values for length and hashFunction