refactor: enhance phone number validation and input handling in Field and LogInPage components

This commit is contained in:
hamed
2025-11-17 15:09:25 +03:30
parent 5a58c13a4e
commit 2777db3b8c
4 changed files with 51 additions and 8 deletions
+2 -1
View File
@@ -11,13 +11,14 @@ export const request = {
},
removeTokenHead
),
getToken: (grant_type, client_id, client_secret, uuid, code) => {
getToken: (grant_type, client_id, client_secret, uuid, code, scope = "nobat724") => {
const formData = new URLSearchParams();
formData.append("grant_type", grant_type);
formData.append("client_id", client_id);
formData.append("client_secret", client_secret);
formData.append("uuid", uuid);
formData.append("code", code);
formData.append("scope", scope);
return api.post("oauth/token", formData, {
headers: {