v1.0.0
What's Changed
- Replace
node-jose
withjose
Breaking Changes
SgidClient
constructor now accepts optionalhostname
andapiVersion
params instead of requiredendpoint
param
Before:
endpoint: 'https://api.id.gov.sg/v1/oauth'
After:
hostname: 'https://api.id.gov.sg', // default
apiVersion: 1 // default
authorizationUrl
andcallback
functions now accepts optionalredirectUrl
to override redirect url.- Removal of the following functions:
createJWT
andverifyJWT
. Importjsonwebtoken
directly if you require them. decodeIdToken
andgetRedirectUri
are now private functions
Other changes
- Replaced
node-jose
library withjose
for better performance.
Ref: https://github.com/panva/jose#how-is-it-different-from-node-jose