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:
parent
2466f01b0b
commit
3ae22fb63d
3 changed files with 24 additions and 8 deletions
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue