Instance Propertyhummingbird-auth 2.0.1HummingbirdOTP
timeStep
OTP.swift:158let timeStep: Int
let timeStep: Int
import HummingbirdOTP
struct TOTP
A time based one time password (OTP)
@frozen struct Int
A signed integer value type.
init(secret: String, length: Int = 6, timeStep: Int = 30, hashFunction: OTPHashFunction = .sha1)
Initialize TOTP
let hashFunction: OTPHashFunction
let length: Int
let secret: String
func compute(date: Date = Date()) -> Int
Compute a TOTP
func createAuthenticatorURL(label: String, issuer: String? = nil) -> String
Create AuthenticatorMiddleware URL for TOTP generator