fix: encode email in loginPrecheck API (#3171)

This commit is contained in:
Vishal Sharma 2023-07-18 18:12:56 +05:30 committed by GitHub
parent 8f1451e154
commit 7822b4efee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -9,9 +9,9 @@ const loginPrecheck = async (
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
try {
const response = await axios.get(
`/loginPrecheck?email=${props.email}&ref=${encodeURIComponent(
window.location.href,
)}`,
`/loginPrecheck?email=${encodeURIComponent(
props.email,
)}&ref=${encodeURIComponent(window.location.href)}`,
);
return {

View File

@ -6,6 +6,6 @@ export interface PayloadProps {
}
export interface Props {
email?: string;
email: string;
path?: string;
}