         return true
     }
 
-    func fetchAccessToken(code: String) {
-        guard let clientId = clientId, clientSecret = clientSecret else { return }
+    static func fetchAccessToken(code: String) {
+        guard let clientId = sharedInstance.clientId, clientSecret = sharedInstance.clientSecret else { return }
 
-        if let url = NSURL(string: "https://api.lyft.com/oauth/token") {
+        if let url = NSURL(string: "\(lyftAPIOAuthURL)/token") {
             let urlRequest = NSMutableURLRequest(URL: url)
             let sessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()
             sessionConfiguration.HTTPAdditionalHeaders = ["Content-Type": "application/json"]


            // Auth
            let authString: String
            if sandbox == true {
                authString = "\(clientId):SANDBOX-\(clientSecret)"
            } else {
                authString = "\(clientId):\(clientSecret)"

        }
    }

    static func openURL(url: NSURL) -> Bool {
        guard let _ = sharedInstance.clientId, _ = sharedInstance.clientSecret else { return false }
        guard let code = NSURLComponents(URL: url, resolvingAgainstBaseURL: false)?.queryItems?.filter({ $0.name == "code" }).first?.value else { return false }

        fetchAccessToken(code)
