From 99e2c1771ec1db768b0d7e4c7aeb2ac359882981 Mon Sep 17 00:00:00 2001 From: Mumthasir-vp Date: Sat, 11 May 2024 10:20:33 +0530 Subject: [PATCH] Fix #10: Make shared instances public accessible --- Sources/eudiWalletOidcIos/Service/CodeVerifierService.swift | 2 +- Sources/eudiWalletOidcIos/Service/DidService.swift | 2 +- Sources/eudiWalletOidcIos/Service/DiscoveryService.swift | 2 +- Sources/eudiWalletOidcIos/Service/SDJWTService.swift | 2 +- Sources/eudiWalletOidcIos/Service/VerificationService.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/eudiWalletOidcIos/Service/CodeVerifierService.swift b/Sources/eudiWalletOidcIos/Service/CodeVerifierService.swift index 6ee9214..d4a15e8 100644 --- a/Sources/eudiWalletOidcIos/Service/CodeVerifierService.swift +++ b/Sources/eudiWalletOidcIos/Service/CodeVerifierService.swift @@ -10,7 +10,7 @@ import CryptoKit public class CodeVerifierService: CodeVerifierProtocol { - static var shared = CodeVerifierService() + public static var shared = CodeVerifierService() private init(){} // Generates a code challenge string for PKCE (Proof Key for Code Exchange) based on the provided code verifier. diff --git a/Sources/eudiWalletOidcIos/Service/DidService.swift b/Sources/eudiWalletOidcIos/Service/DidService.swift index 1710c64..2f53bb4 100644 --- a/Sources/eudiWalletOidcIos/Service/DidService.swift +++ b/Sources/eudiWalletOidcIos/Service/DidService.swift @@ -10,7 +10,7 @@ import CryptoKit import Base58Swift public class DidService { - static var shared = DidService() + public static var shared = DidService() private init(){} // MARK: - Creates a Decentralized Identifier (DID) asynchronously based on the provided JWK (JSON Web Key). diff --git a/Sources/eudiWalletOidcIos/Service/DiscoveryService.swift b/Sources/eudiWalletOidcIos/Service/DiscoveryService.swift index 3d4f292..1d73d43 100644 --- a/Sources/eudiWalletOidcIos/Service/DiscoveryService.swift +++ b/Sources/eudiWalletOidcIos/Service/DiscoveryService.swift @@ -10,7 +10,7 @@ import CryptoKit public class DiscoveryService: DiscoveryServiceProtocol { - static var shared = DiscoveryService() + public static var shared = DiscoveryService() private init(){} // MARK: - Retrieves the issuer configuration asynchronously based on the provided credential issuer well-known URI. diff --git a/Sources/eudiWalletOidcIos/Service/SDJWTService.swift b/Sources/eudiWalletOidcIos/Service/SDJWTService.swift index dc99571..e0dcba4 100644 --- a/Sources/eudiWalletOidcIos/Service/SDJWTService.swift +++ b/Sources/eudiWalletOidcIos/Service/SDJWTService.swift @@ -10,7 +10,7 @@ import CryptoKit public class SDJWTService { - static var shared = SDJWTService() + public static var shared = SDJWTService() private init() {} /** diff --git a/Sources/eudiWalletOidcIos/Service/VerificationService.swift b/Sources/eudiWalletOidcIos/Service/VerificationService.swift index 49aed09..0f72092 100644 --- a/Sources/eudiWalletOidcIos/Service/VerificationService.swift +++ b/Sources/eudiWalletOidcIos/Service/VerificationService.swift @@ -11,7 +11,7 @@ import PresentationExchangeSdkiOS public class VerificationService: VerificationServiceProtocol { - static var shared = VerificationService() + public static var shared = VerificationService() private init() {} // MARK: - Sends a Verifiable Presentation (VP) token asynchronously.