awslabs / aws-jwt-verify

JS library for verifying JWTs signed by Amazon Cognito, and any OIDC-compatible IDP that signs JWTs with RS256, RS384, and RS512
Apache License 2.0
606 stars 42 forks source link

Harmonize type paths across CommonJS vs ESM #48

Closed ottokruse closed 2 years ago

ottokruse commented 2 years ago

Issue #, if available: #47

Description of changes: Use the same set of TypeScript types (from dist/esm) for top level (aws-jwt-verify) as for subpaths (e.g. aws-jwt-verify/cognito-verifier). This prevents TypeScript compile errors due to type mismatches.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.