Releases: opengovsg/sgid-client
Releases · opengovsg/sgid-client
v2.2.0
What's Changed
- feat: expose id token by @kwajiehao in #68
- feat: parse sgid userinfo data by @kwajiehao in #69
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- feat: add Next.js CSR example by @raynerljm in #47
- feat: add Nextjs SSR example by @raynerljm in #49
- feat: express example by @kwajiehao in #50
- feat(ci): update ci so that package is published upon merging to
release
branch by @kwajiehao in #54 - docs: update README to point to dev docs by @raynerljm in #55
- refactor: refactor examples to use redirect instead of callback by @raynerljm in #56
- docs: update example READMEs to point to the docs by @raynerljm in #57
- chore: update port used for Next.js examples by @kwajiehao in #58
- test: setup conformance test suite by @raynerljm in #60
- feat: expose generateNonce util by @mantariksh in #62
- feat: handle array data values by @kwajiehao in #64
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- chore: add CREDITS.md by @mantariksh in #18
- chore: Upgrade openid-client to latest by @natashaannn in #23
- test: set up test suite with Jest and MSW by @mantariksh in #24
- build: include only relevant files in package by @mantariksh in #25
- feat: refine docs and error messages by @mantariksh in #27
- chore: upgrade all linting packages by @mantariksh in #42
- feat: PKCE (redo) by @raynerljm in #46
- feat: check that userinfo sub matches ID token by @mantariksh in #48
New Contributors
- @mantariksh made their first contribution in #18
- @natashaannn made their first contribution in #23
Full Changelog: v1.0.4...v2.0.0
v1.0.4
What's Changed
- fix: bug with
userinfo
method due to wrong types in theuserinfo
endpoint response #12
New Contributors
- @kwajiehao made their first contribution in #14
Full Changelog: v1.0.3...v1.0.4
v1.0.3
What's Changed
- fix: remove paths from hostname for jwks uri by @dextertanyj in #10
New Contributors
- @dextertanyj made their first contribution in #10
Full Changelog: v1.0.2...v1.0.3
v1.0.2
- fix: set Issuer to origin of specified hostname
v1.0.1
fix constructor optional types
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