     private static var defaultInitialCounter: UInt64 = 0
     private static var defaultPeriod: TimeInterval = 30
 
-    private func updateWithToken(_ token: Token) {
+    private func update(with token: Token) {
         self.name = token.name
         self.issuer = token.issuer
 

}

public extension OTPToken {
    static func tokenWithURL(_ url: URL) -> Self? {
        return tokenWithURL(url, secret: nil)
    }

    static func tokenWithURL(_ url: URL, secret: Data?) -> Self? {
        guard let token = Token(url: url, secret: secret) else {
            return nil
        }


    fileprivate convenience init(token: Token) {
        self.init()
        update(with: token)
    }

    public func validate() -> Bool {
