2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00
Commit Graph

285 Commits

Author SHA1 Message Date
Fabian Arndt
3f980a5c71 Fixed regressions of b0cd246 and 3128fdf
3128fdf:
- Secret can be a string or function
- Compatibility with older node versions

b0cd246:
- Fixed dependencies
2019-10-08 18:56:18 +02:00
Conrad Sopala
3128fdfee2
Merge pull request #158 from ansien12/patch-1
Add a check to make sure provided secret is a string.
2019-08-09 16:50:23 +02:00
ansien12
67cc0fb846
Add a check to make sure provided secret is a string.
```
const JWTOptions: JwtAuthOptions = {
    secret: process.env.JWT_SECRET as string,
    timeout: 5_000,
    decodedPropertyName: 'decodedToken',
};
```

Without the change I made and the options snipped above where the secret is actualy "undefined" because the .env file wasn't loaded yet you get a really weird situation that's very hard to debug. 

With "undefined" used as secret the client will successfully connect and send its "authenticate" event without a problem. But the server will not do anything. No errors, no timeouts, nothing.
2019-07-30 22:00:08 +02:00
Conrad Sopala
4482bdd1c1
Merge pull request #157 from ProductOfAmerica/master
Fixed problem with not being able to execute. ALL tests are now running.
2019-07-25 09:31:38 +02:00
jeff.smith34r32@gmail.com
196706aef7 Fixed problem with not being able to execute. ALL Tests are now running successfully. 2019-07-24 18:46:06 -07:00
Conrad Sopala
7902478c82
Merge pull request #153 from Root-Core/patch-2
Update README.md
2019-07-24 17:26:48 +02:00
Conrad Sopala
99177e4344
Merge pull request #106 from Root-Core/patch-1
Fix authentication for namespaces #95
2019-07-24 17:19:22 +02:00
Root-Core
17d5669a3e
Merge branch 'master' into patch-1 2019-07-24 17:15:04 +02:00
Conrad Sopala
5321c3ed9d
Merge pull request #154 from Root-Core/patch-3
Update index.d.ts
2019-07-24 16:57:32 +02:00
Root-Core
d6d3eb66d2
Update index.d.ts
#118
2019-07-24 16:52:32 +02:00
Root-Core
28f9a4e409
Update index.d.ts
- Added cookie option to typings, as added in #134 by @Kaisle
2019-07-24 16:48:32 +02:00
Root-Core
e06fe3d0fc
Update README.md
- Removed text about chrome extension (seems to be irrelevant to this repo)
- Added example for Bearer Token / Authorization Header
- Unified to single quotes
- Added syntax highlighting for bash
- Changed `expiresInMinutes` to `expiresIn` (#117)
- Added hint to run unit tests, before creating a PR
- Split example for socket.io <1 and >=1
2019-07-24 16:40:37 +02:00
Conrad Sopala
b180c24a4c
Merge pull request #116 from Root-Core/typings
Added typescript definition file, exported UnauthorizedError
2019-07-24 16:03:20 +02:00
Conrad Sopala
b0cd246794
Merge branch 'master' into typings 2019-07-24 16:03:10 +02:00
Conrad Sopala
c4b2d37d8c
Merge pull request #152 from Root-Core/patch-2
Fixed merge error
2019-07-24 15:59:21 +02:00
Root-Core
1e47810c98
Fixed merge error
data was renamed to socket
2019-07-24 15:55:12 +02:00
Conrad Sopala
4b4c336bb5
Update README.md 2019-07-23 15:22:23 +02:00
Conrad Sopala
e4c5b973f4
Merge pull request #117 from Root-Core/misc
Renamed "data" to "socket", updated deps
2019-07-23 15:21:55 +02:00
Conrad Sopala
a9944c762a
Merge branch 'master' into misc 2019-07-23 15:20:05 +02:00
Conrad Sopala
a7097566c4
Merge pull request #151 from auth0-community/all-contributors/add-Root-Core
docs: add Root-Core as a contributor
2019-07-16 11:36:51 +02:00
allcontributors[bot]
ea7078077a docs: update .all-contributorsrc 2019-07-16 09:36:36 +00:00
allcontributors[bot]
0f639e4d00 docs: update README.md 2019-07-16 09:36:35 +00:00
Conrad Sopala
e38a983085
Merge pull request #150 from auth0-community/all-contributors/add-pose
docs: add pose as a contributor
2019-07-16 11:36:12 +02:00
allcontributors[bot]
f8ad92b396 docs: update .all-contributorsrc 2019-07-16 09:35:22 +00:00
allcontributors[bot]
91ba2424de docs: update README.md 2019-07-16 09:35:21 +00:00
Conrad Sopala
2a72aeab37
Merge pull request #149 from auth0-community/all-contributors/add-Amialc
docs: add Amialc as a contributor
2019-07-16 11:34:56 +02:00
allcontributors[bot]
82c324e586 docs: update .all-contributorsrc 2019-07-16 09:34:44 +00:00
allcontributors[bot]
88d0cce4d8 docs: update README.md 2019-07-16 09:34:43 +00:00
Conrad Sopala
fb6052fbde
Merge pull request #148 from auth0-community/all-contributors/add-Annyv2
docs: add Annyv2 as a contributor
2019-07-16 11:34:23 +02:00
allcontributors[bot]
4cfde424d6 docs: update .all-contributorsrc 2019-07-16 09:34:12 +00:00
allcontributors[bot]
cae64d6aba docs: update README.md 2019-07-16 09:34:11 +00:00
Conrad Sopala
5f784a3c59
Update README.md 2019-07-16 11:33:44 +02:00
Conrad Sopala
0652045c17
Merge pull request #147 from auth0-community/all-contributors/add-beardaway
docs: add beardaway as a contributor
2019-07-16 11:32:59 +02:00
allcontributors[bot]
473313d348 docs: create .all-contributorsrc 2019-07-16 09:32:18 +00:00
allcontributors[bot]
c1db159ed6 docs: update README.md 2019-07-16 09:32:17 +00:00
Conrad Sopala
934a83666c
Update package.json 2019-04-23 18:47:19 +02:00
Conrad Sopala
c4a4f1c842
Merge pull request #144 from auth0-community/konrad-vulnerabilities-fixes
Request library updated.
2019-04-23 15:29:49 +02:00
Konrad Sopala
ce94139e4b Request library updated. 2019-04-23 15:26:21 +02:00
Conrad Sopala
fbae634992
Merge pull request #118 from Root-Core/store-jwt
Added option to store encoded jwt
2019-02-28 17:24:38 +01:00
Conrad Sopala
413161ce38
Merge pull request #134 from Kaisle/master
Add cookie support
2019-02-19 19:24:24 +01:00
Conrad Sopala
72486ebcc5
Merge pull request #135 from aslafy-z/patch-1
security: deps: upgrade jsonwebtoken to ^8.3.0
2019-02-19 19:23:26 +01:00
Conrad Sopala
9158c54573
Merge pull request #141 from auth0-community/konrad-readme-unify
Unified README structure.
2019-01-15 16:45:54 +00:00
Konrad Sopala
062f5880f2 Unified README structure. 2019-01-15 17:43:44 +01:00
Conrad Sopala
7bf012bd0b
Merge pull request #140 from auth0-community/konrad-prtemplate
Added PULL_REQUEST_TEMPLATE.md
2019-01-07 16:35:49 +01:00
Conrad Sopala
3ef5130828
Merge pull request #139 from auth0-community/konrad-issueTemplate
Added issue template.
2019-01-07 16:31:15 +01:00
Conrad Sopala
4bd9ba60e5
Create PULL_REQUEST_TEMPLATE.md 2019-01-02 19:52:26 +01:00
Conrad Sopala
392c316f0e
Added issue template. 2019-01-02 13:50:27 +01:00
Conrad Sopala
3edd9d5673
Merge pull request #111 from Philhil/Fix-Spelling
fix spelling
2018-12-04 20:33:17 +01:00
Zadkiel
47529f4f14
Update package.json 2018-10-02 19:52:16 +02:00
kaisle
eba9925f2a Add cookie support 2018-09-27 10:53:48 +02:00