Skip to content

v1.0.0

Compare
Choose a tag to compare
@pregnantboy pregnantboy released this 11 May 09:16
· 46 commits to develop since this release

What's Changed

  • Replace node-jose with jose

Breaking Changes

  • SgidClient constructor now accepts optional hostname and apiVersion params instead of required endpoint param

Before:

endpoint: 'https://api.id.gov.sg/v1/oauth'

After:

hostname: 'https://api.id.gov.sg',  // default
apiVersion: 1                       // default
  • authorizationUrl and callback functions now accepts optional redirectUrl to override redirect url.
  • Removal of the following functions: createJWT and verifyJWT. Import jsonwebtoken directly if you require them.
  • decodeIdToken and getRedirectUri are now private functions
Other changes