From d1805b6d023fe8916f12cc07e32f97b7d6a193cf Mon Sep 17 00:00:00 2001 From: Kuldar-Daniel Kokorev Date: Thu, 9 May 2024 15:06:09 +0300 Subject: [PATCH] Public access control: SignedSDJWT recreate claims --- Sources/Issuer/SDJWT.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Issuer/SDJWT.swift b/Sources/Issuer/SDJWT.swift index e805a7b..4dc5ed9 100644 --- a/Sources/Issuer/SDJWT.swift +++ b/Sources/Issuer/SDJWT.swift @@ -200,9 +200,10 @@ extension SignedSDJWT { func serialised(serialiser: (SignedSDJWT) -> (SerialiserProtocol)) throws -> String { serialiser(self).serialised } +} - func recreateClaims() throws -> ClaimExtractorResult { +extension SignedSDJWT { + public func recreateClaims() throws -> ClaimExtractorResult { return try self.toSDJWT().recreateClaims() } - }