Skip to content

Commit

Permalink
Merge pull request #26 from tkey/feat/update-torusUtils-8
Browse files Browse the repository at this point in the history
feat: update torus utils 8
  • Loading branch information
himanshuchawla009 authored Apr 3, 2024
2 parents 22c6c27 + 0a5fd6b commit 0b1020f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name: "TorusUtils", url: "https://github.com/torusresearch/torus-utils-swift" , from: "7.0.1"),
.package(name: "TorusUtils", url: "https://github.com/torusresearch/torus-utils-swift" , from: "8.0.0"),
// dev dependencies only
.package(name:"CryptoSwift", url: "https://github.com/krzyzanowskim/CryptoSwift.git",from: "1.5.1"),
.package(name:"jwt-kit", url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
Expand Down
4 changes: 2 additions & 2 deletions Tests/tkeypkgTests/IntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class integrationTests: XCTestCase {

let nodeManager = NodeDetailManager(network: .sapphire(.SAPPHIRE_DEVNET))
let nodeDetail = try await nodeManager.getNodeDetails(verifier: TORUS_TEST_VERIFIER, verifierID: TORUS_TEST_EMAIL)
let torusUtils = TorusUtils(serverTimeOffset: 1000, network: .sapphire(.SAPPHIRE_DEVNET))
let torusUtils = TorusUtils(serverTimeOffset: 1000, network: .sapphire(.SAPPHIRE_DEVNET), clientId: "CLIENT ID")

let idToken = try generateIdToken(email: TORUS_TEST_EMAIL)
let verifierParams = VerifierParams(verifier_id: TORUS_TEST_EMAIL)
Expand Down Expand Up @@ -123,7 +123,7 @@ final class integrationTests: XCTestCase {

let nodeManager = NodeDetailManager(network: .sapphire(.SAPPHIRE_DEVNET))
let nodeDetail = try await nodeManager.getNodeDetails(verifier: TORUS_TEST_VERIFIER, verifierID: TORUS_TEST_EMAIL)
let torusUtils = TorusUtils(serverTimeOffset: 1000, network: .sapphire(.SAPPHIRE_DEVNET))
let torusUtils = TorusUtils(serverTimeOffset: 1000, network: .sapphire(.SAPPHIRE_DEVNET), clientId: "CLIENT ID")

let idToken = try generateIdToken(email: TORUS_TEST_EMAIL)
let verifierParams = VerifierParams(verifier_id: TORUS_TEST_EMAIL)
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_base.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import TorusUtils

class tkey_baseTests: XCTestCase {

var torus = TorusUtils.init()
var torus = TorusUtils.init(clientId: "CLIENT ID")

override func setUp() async throws {
let postbox_key = try! PrivateKey.generate()
Expand Down

0 comments on commit 0b1020f

Please sign in to comment.