mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-05 09:36:41 +07:00
added account list and ability to drop them
This commit is contained in:
parent
2388a7e20e
commit
5396cf7611
11 changed files with 282 additions and 47 deletions
|
@ -1,5 +1,5 @@
|
|||
import { AUTH_USER_ACTIONS } from '~/redux/auth/constants';
|
||||
import { IAuthState, IUser } from '~/redux/auth/types';
|
||||
import { IAuthState, ISocialProvider, IUser } from '~/redux/auth/types';
|
||||
import { IMessage } from '../types';
|
||||
|
||||
export const userSendLoginRequest = ({
|
||||
|
@ -101,3 +101,23 @@ export const authRestorePassword = (password: string) => ({
|
|||
type: AUTH_USER_ACTIONS.RESTORE_PASSWORD,
|
||||
password,
|
||||
});
|
||||
|
||||
export const authGetSocials = () => ({
|
||||
type: AUTH_USER_ACTIONS.GET_SOCIALS,
|
||||
});
|
||||
|
||||
export const authAddSocial = (provider: ISocialProvider) => ({
|
||||
type: AUTH_USER_ACTIONS.ADD_SOCIAL,
|
||||
provider,
|
||||
});
|
||||
|
||||
export const authDropSocial = (provider: string, id: string) => ({
|
||||
type: AUTH_USER_ACTIONS.DROP_SOCIAL,
|
||||
provider,
|
||||
id,
|
||||
});
|
||||
|
||||
export const authSetSocials = (socials: Partial<IAuthState['profile']['socials']>) => ({
|
||||
type: AUTH_USER_ACTIONS.SET_SOCIALS,
|
||||
socials,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue