dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.2k stars 794 forks source link

refactor: replace jsonwebtoken with jose #1579

Closed panva closed 2 years ago

panva commented 2 years ago

Description

This PR replaces the use of jsonwebtoken library with jose.

Motivation and Context

This is not a required change, it is merely a proposal to use a library without dependencies that is also dual conditional ESM/CJS.

How Has This Been Tested?

Local test suite passed the same before and after the changes.

dnalborczyk commented 2 years ago

thank you @panva ! looks good. also thanks for cleaning up the code some!