refactor: enhance phone number validation and input handling in Field and LogInPage components
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user