API calls for authstart and authlogin; Call authlogin with code and redirect URI to do the token exchange on the backend

This commit is contained in:
2023-07-09 07:58:31 +08:00
parent e80c3528db
commit b1f1b34924
2 changed files with 46 additions and 4 deletions
+12 -1
View File
@@ -1,4 +1,3 @@
import React from "react";
import Axios from "axios";
class usersService {
@@ -26,10 +25,22 @@ class usersService {
};
return this.postAuxEnd("/dashdata", postData);
}
logInUser(reqData) {
localStorage.setItem("session_token", ``);
return this.postAuxEnd("/userlogin", reqData);
}
authStart(reqData) {
localStorage.setItem("session_token", ``);
return this.postAuxEnd("/authstart", reqData);
}
authLogin(reqData) {
localStorage.setItem("session_token", ``);
return this.postAuxEnd("/authlogin", reqData);
}
marketJobData(reqData) {
var postData = {
uuid: localStorage.getItem("uuid"),