Updates
This commit is contained in:
@@ -4,12 +4,14 @@ import loginUser from "../../actions/users/login-user";
|
||||
import logoutUser from "../../actions/users/logout-user";
|
||||
import resetPassword from "../../actions/users/reset-password";
|
||||
import sendEmailCode from "../../actions/users/send-email-code";
|
||||
import googleAuth from "../../actions/users/social/google-auth";
|
||||
import updateUser from "../../actions/users/update-user";
|
||||
import userAuth from "../../actions/users/user-auth";
|
||||
|
||||
import {
|
||||
AddUserParams,
|
||||
GetUserParams,
|
||||
GoogleAuthParams,
|
||||
LoginUserParam,
|
||||
ResetPasswordParams,
|
||||
SendEmailCodeParams,
|
||||
@@ -53,6 +55,11 @@ export default function user(params?: Params) {
|
||||
return await resetPassword({ ..._, useLocal: true });
|
||||
}
|
||||
: resetPassword,
|
||||
googleLogin: params?.local
|
||||
? async (_: GoogleAuthParams) => {
|
||||
return await googleAuth({ ..._, useLocal: true });
|
||||
}
|
||||
: googleAuth,
|
||||
logout: logoutUser,
|
||||
auth: userAuth,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user