 						let email = "test@applivery.com"
 						let password = "TEST_PASSWORD"
 						matchedLoginURL = false
-						StubResponse.testRequest(with: "login_success.json", url: "/api/auth") { _, json, _ in
+						StubResponse.testRequest(with: "login_success.json", url: "/v1/auth/login") { _, json, _ in
 							matchedLoginURL = true
 							loginBody = json
 						}

					var matchedLoginURL = false
					var loginBody: JSON?
					beforeEach {
						let email = "test@applivery.com"
						let password = "TEST_PASSWORD"
						matchedLoginURL = false
						loginBody = nil
						StubResponse.testRequest(url: "/api/auth") { _, json, _ in
							matchedLoginURL = true
							loginBody = json
						}

					}
					it("should request user token") {
						expect(matchedLoginURL).toEventually(beTrue())
						expect(loginBody?["provider"]?.toString()).toEventually(equal("traditional"))
						expect(loginBody?["payload.email"]?.toString()).toEventually(equal("test@applivery.com"))
						expect(loginBody?["payload.password"]?.toString()).toEventually(equal("TEST_PASSWORD"))
					}
					it("should request an authenticated download token") {
						expect(matchedDownloadURL).toEventually(beTrue())
						expect(downloadHeaders?["x-sdk-auth-token"]).toEventually(equal("test_user_token"))
					}
				}
			}
			context("when ota needs auth but was previously logged in") {
				var matchedDownloadURL = false
				var downloadHeaders: [String: String]?
				beforeEach {
					matchedDownloadURL = false
					downloadHeaders = nil
					StubResponse.testRequest(with: "ko.json", url: "/v1/build/LAST_BUILD_ID_TEST/downloadToken", matching: { _, _, headers in
						matchedDownloadURL = true
						downloadHeaders = headers
					})
					self.userDefaultsMock.stubDictionary = UserDefaultFakes.storedConfig(
						lastBuildID: "LAST_BUILD_ID_TEST",
