mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-05 09:36:41 +07:00
moved reaction for oauth events to sagas
This commit is contained in:
parent
94cc515589
commit
441a0824cc
5 changed files with 38 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
import { AUTH_USER_ACTIONS } from '~/redux/auth/constants';
|
||||
import { IAuthState, ISocialProvider, IUser } from '~/redux/auth/types';
|
||||
import { IMessage } from '../types';
|
||||
import { IMessage, IOAuthEvent } from '../types';
|
||||
|
||||
export const userSendLoginRequest = ({
|
||||
username,
|
||||
|
@ -133,3 +133,8 @@ export const authLoginWithSocial = (token: string, username?: string, password?:
|
|||
username,
|
||||
password,
|
||||
});
|
||||
|
||||
export const authGotOauthEvent = (event: IOAuthEvent) => ({
|
||||
type: AUTH_USER_ACTIONS.GOT_OAUTH_EVENT,
|
||||
event,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue