Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

fix: didsignjwt Signer interface not exported #3440

Merged

Conversation

DRK3
Copy link
Contributor

@DRK3 DRK3 commented Dec 2, 2022

Fixed an issue with the didsignjwt.SignerGetter function signature that's used as a parameter to the SignJWT function. Since the return type of SignerGetter is an unexported interface, it means that external packages could not create a custom SignerGetter function and pass it in (which was the intent). This PR simply exports the Signer interface to make this possible.

Signed-off-by: Derek Trider [email protected]

Fixed an issue with the didsignjwt.SignerGetter function signature that's used as a parameter to the SignJWT function. Since the return type of SignerGetter is an unexported interface, it means that external packages could not create a custom SignerGetter function and pass it in (which was the intent). This PR simply exports the Signer interface to make this possible.

Signed-off-by: Derek Trider <[email protected]>
@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #3440 (1b0910f) into main (d011b92) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3440   +/-   ##
=======================================
  Coverage   87.58%   87.58%           
=======================================
  Files         346      346           
  Lines       47011    47011           
=======================================
  Hits        41174    41174           
  Misses       4334     4334           
  Partials     1503     1503           
Impacted Files Coverage Δ
pkg/doc/util/didsignjwt/signjwt.go 86.88% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@troyronda troyronda merged commit 083803e into hyperledger-archives:main Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants