 let kQueryIssuerKey = "issuer"
 
 extension Token {
-    class func tokenWithURL(url: NSURL, secret: NSData? = nil) -> Token? {
+    class func tokenWithURL(url: NSURL, secret externalSecret: NSData? = nil) -> Token? {
         if (url.scheme != kOTPAuthScheme) { return nil }
 
         var queryDictionary = Dictionary<String, String>()

            period = NSTimeInterval(periodInt)
        }

        let token = Token(type:type, secret:secretForToken, name:name, issuer:issuer, algorithm:algorithm, digits:digits, period:period)

        if let counterString = queryDictionary[kQueryCounterKey] {
            errno = 0

            if components.count > 1 {
                issuer = components[0]
                name = name.substringFromIndex(issuer.utf16count + 1).stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet())
            }
        }

