feat: add refresh token and global exception filter
This commit is contained in:
@@ -3,5 +3,15 @@
|
||||
"phone": "Phone",
|
||||
"password": "Password",
|
||||
"otp": "Otp"
|
||||
},
|
||||
"errors": {
|
||||
"wrongPhoneOrPass": "Entered phone number or password is wrong.",
|
||||
"unauthorized": "Unauthorized access",
|
||||
"tokenReuse": "Token reuse detected.",
|
||||
"invalidOTP": "OTP is invalid or expired."
|
||||
},
|
||||
"messages": {
|
||||
"otpSent": "OTP sent to {phone}.",
|
||||
"sendPass": "Please send password."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"errors": {
|
||||
"internalServerError": "Internal Server Error",
|
||||
"tooManyRequests": "Too many requests! Try again after {minutes} min.",
|
||||
"requestTimeout": "Unable to process your request at the moment."
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
"password": "Password"
|
||||
},
|
||||
"errors": {
|
||||
"passwordPattern": "Password should contain atleast 8 characters, including letters, numbers and symbols."
|
||||
"passwordPattern": "Password should contain atleast 8 characters, including letters, numbers and symbols.",
|
||||
"userNotExist": "User does not exist."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,5 +3,15 @@
|
||||
"phone": "شماره موبایل",
|
||||
"password": "رمز عبور",
|
||||
"otp": "کد تایید"
|
||||
},
|
||||
"errors": {
|
||||
"wrongPhoneOrPass": "شماره موبایل یا رمز عبور اشتباه است.",
|
||||
"unauthorized": "دسترسی غیر مجاز",
|
||||
"tokenReuse": "توکن قبلا استفاده شده.",
|
||||
"invalidOTP": "کد تایید اشتباه است یا منقضی شده."
|
||||
},
|
||||
"messages": {
|
||||
"otpSent": "کد تایید به شماره {phone} ارسال شد.",
|
||||
"sendPass": "لطفا رمز عبور را ارسال کنید."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"errors": {
|
||||
"internalServerError": "خطایی رخ داد",
|
||||
"tooManyRequests": "تعداد درخواست ها بیشتر از حد مجاز است! لطفا بعد از {minutes} دقیقه دوباره امتحان کنید.",
|
||||
"requestTimeout": "امکان پردازش درخواست شما در این لحظه وجود ندارد."
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
"password": "رمز عبور"
|
||||
},
|
||||
"errors": {
|
||||
"passwordPattern": "رمز عبور باید حداقل شامل 8 کاراکتر شامل حروف، اعداد و نشانه ها باشد."
|
||||
"passwordPattern": "رمز عبور باید حداقل شامل 8 کاراکتر شامل حروف، اعداد و نشانه ها باشد.",
|
||||
"userNotExist": "کاربر مورد نظر وجود ندارد."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user