You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
610 B
33 lines
610 B
import { |
|
SEND_REGISTER_REQUEST, |
|
SEND_EMAIL_VERIFICATION_REQUEST, |
|
SEND_LOGIN_REQUEST, |
|
SEND_LOGOUT_REQUEST |
|
} from "../../constants/auth.constants"; |
|
|
|
export function sendRegisterRequest(postBody) { |
|
return { |
|
type: SEND_REGISTER_REQUEST, |
|
data: postBody |
|
}; |
|
} |
|
|
|
export function sendEmailVerificationRequest(postBody) { |
|
return { |
|
type: SEND_EMAIL_VERIFICATION_REQUEST, |
|
data: postBody |
|
}; |
|
} |
|
|
|
export function sendLoginRequest(postBody) { |
|
return { |
|
type: SEND_LOGIN_REQUEST, |
|
data: postBody |
|
}; |
|
} |
|
|
|
export function sendLogoutRequest() { |
|
return { |
|
type: SEND_LOGOUT_REQUEST |
|
} |
|
}
|
|
|