New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

feathers-authentication-client

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-authentication-client - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

yarn.lock

25

CHANGELOG.md
# Change Log
## [v0.1.7](https://github.com/feathersjs/feathers-authentication-client/tree/v0.1.7) (2017-01-29)
[Full Changelog](https://github.com/feathersjs/feathers-authentication-client/compare/v0.1.6...v0.1.7)
**Closed issues:**
- \[Webpack\] TypeError: \_this4.storage.getItem is not a function [\#18](https://github.com/feathersjs/feathers-authentication-client/issues/18)
- \[Feature request\] Signup via socket [\#17](https://github.com/feathersjs/feathers-authentication-client/issues/17)
- Missing auth token when used with feathers-rest in comparison to feathers-socketio [\#16](https://github.com/feathersjs/feathers-authentication-client/issues/16)
- Cannot read property 'on' of undefined - feathers-authentication-client [\#12](https://github.com/feathersjs/feathers-authentication-client/issues/12)
**Merged pull requests:**
- Update passport.js [\#20](https://github.com/feathersjs/feathers-authentication-client/pull/20) ([bertho-zero](https://github.com/bertho-zero))
## [v0.1.6](https://github.com/feathersjs/feathers-authentication-client/tree/v0.1.6) (2016-12-14)
[Full Changelog](https://github.com/feathersjs/feathers-authentication-client/compare/v0.1.5...v0.1.6)
**Closed issues:**
- `logout\(\)` doesn't resolve [\#10](https://github.com/feathersjs/feathers-authentication-client/issues/10)
**Merged pull requests:**
- Fix linting [\#13](https://github.com/feathersjs/feathers-authentication-client/pull/13) ([marshallswain](https://github.com/marshallswain))
## [v0.1.5](https://github.com/feathersjs/feathers-authentication-client/tree/v0.1.5) (2016-12-13)

@@ -4,0 +29,0 @@ [Full Changelog](https://github.com/feathersjs/feathers-authentication-client/compare/v0.1.4...v0.1.5)

32

lib/passport.js

@@ -79,5 +79,3 @@ 'use strict';

function socketUpgradeHandler() {
var _this2 = this;
var socketUpgradeHandler = function socketUpgradeHandler() {
socket.io.engine.on('upgrade', function () {

@@ -90,7 +88,7 @@ debug('Socket upgrading');

var data = {
strategy: _this2.options.jwtStrategy,
strategy: _this.options.jwtStrategy,
accessToken: app.get('accessToken')
};
_this2.authenticateSocket(data, socket, emit).then(_this2.setJWT).catch(function (error) {
_this.authenticateSocket(data, socket, emit).then(_this.setJWT).catch(function (error) {
debug('Error re-authenticating after socket upgrade', error);

@@ -102,3 +100,3 @@ socket.authenticated = false;

});
}
};

@@ -154,3 +152,3 @@ if (socket.io && socket.io.engine) {

value: function authenticate() {
var _this3 = this;
var _this2 = this;

@@ -171,3 +169,3 @@ var credentials = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

}
return { strategy: _this3.options.jwtStrategy, accessToken: accessToken };
return { strategy: _this2.options.jwtStrategy, accessToken: accessToken };
});

@@ -178,9 +176,9 @@ }

return getCredentials.then(function (credentials) {
return _this3.connected(app).then(function (socket) {
return _this2.connected(app).then(function (socket) {
if (app.rest) {
return app.service(_this3.options.path).create(credentials).then(_this3.setJWT);
return app.service(_this2.options.path).create(credentials).then(_this2.setJWT);
}
var emit = app.io ? 'emit' : 'send';
return _this3.authenticateSocket(credentials, socket, emit).then(_this3.setJWT);
return _this2.authenticateSocket(credentials, socket, emit).then(_this2.setJWT);
});

@@ -226,3 +224,3 @@ });

value: function logout() {
var _this4 = this;
var _this3 = this;

@@ -241,3 +239,3 @@ var app = this.app;

return _this4.logoutSocket(socket, method);
return _this3.logoutSocket(socket, method);
}

@@ -261,3 +259,3 @@ });

value: function getJWT() {
var _this5 = this;
var _this4 = this;

@@ -272,6 +270,6 @@ var app = this.app;

return Promise.resolve(_this5.storage.getItem(_this5.options.storageKey)).then(function (jwt) {
var token = jwt || _this5.getCookie(_this5.options.cookie);
return Promise.resolve(_this4.storage.getItem(_this4.options.storageKey)).then(function (jwt) {
var token = jwt || _this4.getCookie(_this4.options.cookie);
if (token && token !== 'null' && !_this5.payloadIsValid((0, _jwtDecode2.default)(token))) {
if (token && token !== 'null' && !_this4.payloadIsValid((0, _jwtDecode2.default)(token))) {
token = undefined;

@@ -278,0 +276,0 @@ }

{
"name": "feathers-authentication-client",
"description": "The authentication plugin for feathers-client",
"version": "0.1.7",
"version": "0.1.8",
"homepage": "https://github.com/feathersjs/feathers-authentication-client",

@@ -6,0 +6,0 @@ "main": "lib/index",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc