Updates
This commit is contained in:
+2
@@ -1,5 +1,6 @@
|
||||
import logoutUser from "../../actions/users/logout-user";
|
||||
import userAuth from "../../actions/users/user-auth";
|
||||
import validateTempEmailCode from "../../actions/users/validate-temp-email-code";
|
||||
import { AddUserParams, GetUserParams, GoogleAuthParams, LoginUserParam, ResetPasswordParams, SendEmailCodeParams, UpdateUserParams } from "../../types";
|
||||
type Params = {
|
||||
local?: boolean;
|
||||
@@ -15,6 +16,7 @@ export default function user(params?: Params): {
|
||||
googleLogin: (_: GoogleAuthParams) => Promise<import("../../types").APIResponseObject>;
|
||||
logout: typeof logoutUser;
|
||||
auth: typeof userAuth;
|
||||
validateTempEmailCode: typeof validateTempEmailCode;
|
||||
};
|
||||
};
|
||||
export {};
|
||||
|
||||
+2
@@ -22,6 +22,7 @@ const send_email_code_1 = __importDefault(require("../../actions/users/send-emai
|
||||
const google_auth_1 = __importDefault(require("../../actions/users/social/google-auth"));
|
||||
const update_user_1 = __importDefault(require("../../actions/users/update-user"));
|
||||
const user_auth_1 = __importDefault(require("../../actions/users/user-auth"));
|
||||
const validate_temp_email_code_1 = __importDefault(require("../../actions/users/validate-temp-email-code"));
|
||||
function user(params) {
|
||||
return {
|
||||
auth: {
|
||||
@@ -62,6 +63,7 @@ function user(params) {
|
||||
: google_auth_1.default,
|
||||
logout: logout_user_1.default,
|
||||
auth: user_auth_1.default,
|
||||
validateTempEmailCode: validate_temp_email_code_1.default,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user