2017-09-09 20:34:26 +05:30
|
|
|
// @flow
|
2016-07-30 23:48:58 +05:30
|
|
|
import AuthFlow from './AuthFlow';
|
2017-06-08 01:52:51 +05:30
|
|
|
export type {AuthContext} from './AuthFlow';
|
2016-03-02 02:06:14 +05:30
|
|
|
|
2016-04-12 09:19:58 +05:30
|
|
|
import * as actions from 'components/auth/actions';
|
2016-03-02 02:06:14 +05:30
|
|
|
|
2016-04-12 09:19:58 +05:30
|
|
|
const availableActions = {
|
2017-09-09 20:34:26 +05:30
|
|
|
updateUser: actions.updateUser,
|
|
|
|
authenticate: actions.authenticate,
|
|
|
|
logout: actions.logout,
|
|
|
|
goBack: actions.goBack,
|
|
|
|
redirect: actions.redirect,
|
|
|
|
login: actions.login,
|
|
|
|
acceptRules: actions.acceptRules,
|
|
|
|
forgotPassword: actions.forgotPassword,
|
|
|
|
recoverPassword: actions.recoverPassword,
|
|
|
|
register: actions.register,
|
|
|
|
activate: actions.activate,
|
|
|
|
resendActivation: actions.resendActivation,
|
|
|
|
contactUs: actions.contactUs,
|
|
|
|
setLogin: actions.setLogin,
|
|
|
|
setAccountSwitcher: actions.setAccountSwitcher,
|
|
|
|
setErrors: actions.setErrors,
|
|
|
|
clearErrors: actions.clearErrors,
|
|
|
|
oAuthValidate: actions.oAuthValidate,
|
|
|
|
oAuthComplete: actions.oAuthComplete,
|
|
|
|
setClient: actions.setClient,
|
|
|
|
resetOAuth: actions.resetOAuth,
|
|
|
|
resetAuth: actions.resetAuth,
|
|
|
|
setOAuthRequest: actions.setOAuthRequest,
|
|
|
|
setOAuthCode: actions.setOAuthCode,
|
|
|
|
requirePermissionsAccept: actions.requirePermissionsAccept,
|
|
|
|
setScopes: actions.setScopes,
|
|
|
|
setLoadingState: actions.setLoadingState
|
2016-04-12 09:19:58 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
export default new AuthFlow(availableActions);
|