This repository has been archived on 2024-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
socketio-jwt/CHANGELOG.md
2021-02-22 13:07:40 +01:00

2.1 KiB

Changelog

2.0.0 (2021-02-22)

Features

BREAKING CHANGES

  • extraHeaders with Authorization doesn't work anymore

Migration

You need to change the way to connect client side.

Before :

import { io } from 'socket.io-client'

const socket = io('http://localhost:9000', {
  extraHeaders: { Authorization: `Bearer ${yourJWT}` }
})

After :

import { io } from 'socket.io-client'

const socket = io('http://localhost:9000', {
  auth: { token: `Bearer ${yourJWT}` }
})

1.1.1 (2021-01-28)

Bug Fixes

  • types: decodedToken in secret callback (c1a9213), closes #21

Documentation

  • update server side usage with jwks-rsa : get the secret with key.getPublicKey() instead of key.rsaPublicKey

1.1.0 (2021-01-07)

Features

  • add algorithms option (abbabc5)
  • add support for jwks-rsa (#1) (261e8d6)
  • improve types by extending socket.io module (#6) (84b523f)

1.0.1 (2020-12-29)

Documentation

  • fix usage section by correctly importing authorize

1.0.0 (2020-12-29)

Initial release.