2.4 KiB
2.4 KiB
Changelog
2.1.0 (2021-03-08)
Features
2.0.0 (2021-02-22)
Features
-
usage of auth option to send credentials (a14d4e9)
See: https://socket.io/docs/v3/middlewares/#Sending-credentials
BREAKING CHANGES
extraHeaders
withAuthorization
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
Documentation
- update server side usage with
jwks-rsa
: get the secret withkey.getPublicKey()
instead ofkey.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.