feat: add refresh token and global exception filter

This commit is contained in:
2026-05-09 09:00:25 +03:30
parent 06f659101d
commit 73f7af3146
32 changed files with 512 additions and 42 deletions
+10
View File
@@ -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."
}
}
+7
View File
@@ -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."
}
}
+2 -1
View File
@@ -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."
}
}