@vulkano/core 1.15.1 → 1.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/libs/Jwt.js +5 -2
  2. package/package.json +1 -1
package/libs/Jwt.js CHANGED
@@ -207,12 +207,15 @@ module.exports = {
207
207
  */
208
208
  socket(socket) {
209
209
 
210
- const {
210
+ let {
211
211
  token
212
212
  } = socket.handshake.auth || {};
213
213
 
214
214
  if (token === null || typeof token === 'undefined' || !token) {
215
- return this.getToken(socket.handshake);
215
+ token = this.getToken(socket.handshake);
216
+ if (!token) {
217
+ return null;
218
+ }
216
219
  }
217
220
 
218
221
  // Decode Token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulkano/core",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "A MVC framework using Express 4",
5
5
  "license": "MIT",
6
6
  "author": "Vulkano Team",