v1.0.0
What's Changed
- Replace
node-josewithjose
Breaking Changes
SgidClientconstructor now accepts optionalhostnameandapiVersionparams instead of requiredendpointparam
Before:
endpoint: 'https://api.id.gov.sg/v1/oauth'After:
hostname: 'https://api.id.gov.sg', // default
apiVersion: 1 // defaultauthorizationUrlandcallbackfunctions now accepts optionalredirectUrlto override redirect url.- Removal of the following functions:
createJWTandverifyJWT. Importjsonwebtokendirectly if you require them. decodeIdTokenandgetRedirectUriare now private functions
Other changes
- Replaced
node-joselibrary withjosefor better performance.
Ref: https://github.com/panva/jose#how-is-it-different-from-node-jose