2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00
socketio-jwt/CHANGELOG.md
2021-03-08 14:37:14 +01:00

2.4 KiB

Changelog

2.1.0 (2021-03-08)

Features

  • add optional onAuthentication option to add user property in socket object (#62) (c7f64a6)

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.