 }
 
 public extension OTPToken {
-    static func tokenWithURL(_ url: URL) -> Self? {
-        return tokenWithURL(url, secret: nil)
+    @objc(tokenWithURL:)
+    static func token(from url: URL) -> Self? {
+        return token(from: url, secret: nil)
     }
 
-    static func tokenWithURL(_ url: URL, secret: Data?) -> Self? {
+    @objc(tokenWithURL:secret:)
+    static func token(from url: URL, secret: Data?) -> Self? {
         guard let token = Token(url: url, secret: secret) else {
             return nil
         }


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

    public func validate() -> Bool {

import Foundation
import OneTimePassword

/// `OTPToken` is a mutable, Objective-C-compatible wrapper around `OneTimePassword.Token`. For more
/// information about its properties and methods, consult the underlying `OneTimePassword`
/// documentation.
