Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expandorg/app-auth

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expandorg/app-auth - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

4

package.json
{
"name": "@expandorg/app-auth",
"version": "0.0.16",
"version": "0.0.17",
"description": "Auth app",

@@ -21,3 +21,3 @@ "main": "index.js",

},
"gitHead": "72bc54067b852f437c34a1cc8847c3003580f44f"
"gitHead": "81b2c11bc00034b4dbf608ff0e010121f1059152"
}

@@ -12,2 +12,4 @@ // @flow

watchAppInit,
resetPassword,
restorePassword,
} from './src/app/sagas';

@@ -25,2 +27,4 @@

watchAppInit,
resetPassword,
restorePassword,
};

@@ -10,2 +10,4 @@ // @flow

signupMetamaskStateSelector,
resetPasswordStateSelector,
restorePasswordStateSelector,
} from './src/app/selectors';

@@ -21,2 +23,4 @@

signupMetamaskStateSelector,
resetPasswordStateSelector,
restorePasswordStateSelector,
};

@@ -28,4 +28,12 @@ // @flow

LOGOUT_FAILED: null,
RESET_PASSWORD: null,
RESET_PASSWORD_COMPLETE: null,
RESET_PASSWORD_FAILED: null,
RESTORE_PASSWORD: null,
RESTORE_PASSWORD_COMPLETE: null,
RESTORE_PASSWORD_FAILED: null,
});
export default authActionTypes;

@@ -19,4 +19,9 @@ import { BaseApi } from '@expandorg/api-client';

logout = () => this.post('/logout');
resetPassword = ({ email }) => this.post('/password/reset', { email });
restorePassword = ({ password, code }) =>
this.post('/password/restore', { password, code });
}
export const authApi = new AuthApi();

@@ -12,2 +12,5 @@ import { requestUiStateReducer } from '@expandorg/app-utils';

signupMetamask: requestUiStateReducer(authActionTypes.SIGNUP_METAMASK),
resetPassword: requestUiStateReducer(authActionTypes.RESET_PASSWORD),
restorePassword: requestUiStateReducer(authActionTypes.RESTORE_PASSWORD),
};

@@ -121,1 +121,13 @@ import { takeEvery, call, put, select, getContext } from 'redux-saga/effects';

}
export const resetPassword = email => ({
type: authActionTypes.RESET_PASSWORD,
payload: { email },
asyncCall: authApi.resetPassword,
});
export const restorePassword = (password, code) => ({
type: authActionTypes.RESTORE_PASSWORD,
payload: { password, code },
asyncCall: authApi.restorePassword,
});

@@ -7,3 +7,6 @@ // @flow

export const loggedInSelector = createSelector(userSelector, user => !!user);
export const loggedInSelector = createSelector(
userSelector,
user => !!user
);

@@ -33,1 +36,11 @@ export const authStateSelector = createSelector(

);
export const resetPasswordStateSelector = createSelector(
uiStateSelector,
state => state.resetPassword
);
export const restorePasswordStateSelector = createSelector(
uiStateSelector,
state => state.restorePassword
);

@@ -17,3 +17,2 @@ import authActionTypes from './actionTypes';

return initialState;
default:

@@ -20,0 +19,0 @@ break;

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