Skip to content

Commit

Permalink
add setupHTTPCredentials in fetchConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
KunJeongPark committed Oct 8, 2024
1 parent 5492617 commit e52f957
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/BraintreeCore/BTAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ import Foundation
}

@MainActor func fetchConfiguration() async throws -> BTConfiguration {
try await configurationLoader.getConfig()
do {
let configuration = try await configurationLoader.getConfig()
setupHTTPCredentials(configuration)
return configuration
} catch {
throw error
}
}

/// Fetches a customer's vaulted payment method nonces.
Expand Down

0 comments on commit e52f957

Please sign in to comment.