Commit Graph

25 Commits

Author SHA1 Message Date
50c236ca4d
refactor: usage of node:test instead of tap 2023-07-22 12:18:28 +02:00
Divlo
41a0f1839f
fix: safer (and correct) isUnauthorizedError 2023-04-02 23:32:28 +02:00
Divlo
71e0d82655
fix: safer isUnauthorizedError type guard 2023-04-02 23:04:41 +02:00
Divlo
c7c152a554
build(deps): update latest 2022-09-09 11:39:27 +02:00
Divlo
9a942c52c5
style: fix linting issue 2022-04-07 10:14:52 +02:00
Divlo
dbb363747d
feat: usage of ESM modules imports (instead of CommonJS)
BREAKING CHANGE: This package is now pure ESM

BREAKING CHANGE: minimum supported Node.js >= 16.0.0
2022-04-07 10:11:48 +02:00
Divlo
098475d64c
feat: add isUnauthorizedError type guard
fixes #328
2022-02-18 17:20:59 +01:00
dependabot[bot]
596d6a82c9
build(deps-dev): bump typescript from 4.3.5 to 4.4.2 (#201)
Co-authored-by: Divlo <contact@divlo.fr>
2021-08-27 17:18:31 +02:00
Divlo
dff86f7bda
build(deps): bump jest from 26.6.3 to 27.0.6
close #128
2021-07-23 23:00:25 +02:00
Divlo
a41881744a
fix(types): onAuthorization can return a string 2021-07-23 22:54:07 +02:00
Sayak Mukhopadhyay
c7f64a6312 feat: add optional onAuthentication option to add user property in socket object (#62) 2021-03-08 14:10:42 +01:00
divlo
a14d4e937b feat: usage of auth option to send credentials
BREAKING CHANGE: extraHeaders with Authorization doesn't work anymore

See: https://socket.io/docs/v3/middlewares/#Sending-credentials
2021-02-22 13:00:53 +01:00
divlo
d01bcc29fa docs: add authorize options 2021-02-18 20:14:56 +01:00
divlo
af7ff4e8d9 test: fix typings in fixture keySecret 2021-01-28 19:12:46 +01:00
divlo
c1a9213a52 fix(types): decodedToken in secret callback
close #21
2021-01-28 18:47:38 +01:00
divlo
261e8d66e2 feat: add support for jwks-rsa (#1) 2021-01-07 14:30:37 +01:00
Jozef Sovcik
84b523f434
feat: improve types by extending socket.io module (#6) 2021-01-04 14:35:59 +01:00
divlo
abbabc588e feat: add algorithms option 2020-12-30 14:50:56 +01:00
divlo
d44bd9e17e test: add authorize 100% coverage 2020-12-29 04:05:39 +01:00
divlo
0e534dd8ee feat: add support for socket.io >= 3.0.0 2020-12-29 03:32:28 +01:00
divlo
e328a83a18 fix: temporary fix ts errors by using any type 2020-12-29 01:55:44 +01:00
divlo
02337add0d test: add authorizer and fixture 2020-12-28 23:51:03 +01:00
divlo
243a598f37 style: run npm run format 2020-12-28 18:13:07 +01:00
divlo
6ea9d6f933 feat: make it work like before with socket.io 2.0
WIP
2020-12-28 18:09:42 +01:00
divlo
748c61ed07 chore: basic structure of files to rewrite in TS 2020-12-28 16:49:31 +01:00