1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

listening for backend events

This commit is contained in:
Fedor Katurov 2020-07-27 17:35:59 +07:00
parent 2466f01b0b
commit 3ae22fb63d
3 changed files with 24 additions and 8 deletions

View file

@ -121,3 +121,8 @@ export const authSetSocials = (socials: Partial<IAuthState['profile']['socials']
type: AUTH_USER_ACTIONS.SET_SOCIALS,
socials,
});
export const authAttachSocial = (token: string) => ({
type: AUTH_USER_ACTIONS.ATTACH_SOCIAL,
token,
});

View file

@ -29,6 +29,7 @@ export const AUTH_USER_ACTIONS = {
DROP_SOCIAL: 'DROP_SOCIAL',
ADD_SOCIAL: 'ADD_SOCIAL',
SET_SOCIALS: 'SET_SOCIALS',
ATTACH_SOCIAL: 'ATTACH_SOCIAL',
};
export const USER_ERRORS = {