Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export algorithm-specific COSEPublicKey types in the server package #504

Merged

Conversation

mmv08
Copy link
Contributor

@mmv08 mmv08 commented Jan 10, 2024

The decodeCredentialPublicKey function signature returns a generic COSEPublicKey type, missing algorithm-specific properties. Exporting additional types would enable type casting to a specific public key type.

Perhaps it'd be handy to re-export the existing type guards, but I think plain types are enough because the developers should know which algorithm they used.

@mmv08 mmv08 changed the title Export additional COSEPubKey types in the server package Export algorithm-specific COSEPublicKey types in the server package Jan 10, 2024
@MasterKale
Copy link
Owner

Hey @mmv08 thank you for the PR! I'll try and find time this weekend to merge this in and cut a release, thanks for your patience :)

@mmv08
Copy link
Contributor Author

mmv08 commented Jan 12, 2024

Hey @mmv08 thank you for the PR! I'll try and find time this weekend to merge this in and cut a release, thanks for your patience :)

thank you for your tremendous work, sir :)

@MasterKale MasterKale merged commit d5a6862 into MasterKale:master Jan 20, 2024
2 checks passed
@MasterKale MasterKale added this to the v8.3.7 milestone Jan 20, 2024
@MasterKale MasterKale added package:types @simplewebauthn/typescript-types package:server @simplewebauthn/server and removed package:types @simplewebauthn/typescript-types labels Jan 20, 2024
@MasterKale
Copy link
Owner

Hello @mmv08, sorry for the delay! These types should now be available for import in the newly-published @simplewebauthn/server@8.3.7 ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:server @simplewebauthn/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants