Browse Source

hotfix: change api url

troca a url da api wpdauth para wpd.brazilsouth
master
bobmw 8 months ago
parent
commit
70e10ffacf
  1. 8
      src/app/api/auth.js
  2. 4
      src/app/auth/authClient.js

8
src/app/api/auth.js

@ -47,7 +47,7 @@ function signup({
async function userPersonalData() {
const authToken = await authStorage.getToken();
const localClient = create({
baseURL: "https://wpdauth.pinear.com.br/users",
baseURL: "http://wpd.brazilsouth.cloudapp.azure.com/users",
});
localClient.setHeader("Authorization", `Bearer ${authToken}`);
@ -61,7 +61,7 @@ async function userActivation(code) {
// console.log("USER NAME: " + username);
const localClient = create({
baseURL: "https://wpdauth.pinear.com.br/users",
baseURL: "http://wpd.brazilsouth.cloudapp.azure.com/users",
});
localClient.setHeader("Authorization", `Bearer ${authToken}`);
@ -97,7 +97,7 @@ function loginByUsernamAnswers(username, secQuestionId, secQuestionAnswer) {
function updatePassword(authToken, username, password) {
const localClient = create({
baseURL: "https://wpdauth.pinear.com.br/forgotpasswords",
baseURL: "http://wpd.brazilsouth.cloudapp.azure.com/forgotpasswords",
});
localClient.setHeader("Authorization", `Bearer ${authToken}`);
@ -110,7 +110,7 @@ function updatePassword(authToken, username, password) {
async function UpdateUserInfo(authToken,defaultValue,formValues) {
const localClient = create({
baseURL: "https://wpdauth.pinear.com.br/users",
baseURL: "http://wpd.brazilsouth.cloudapp.azure.com/users",
});
localClient.setHeader("Authorization", `Bearer ${authToken}`);

4
src/app/auth/authClient.js

@ -1,11 +1,11 @@
import { create } from "apisauce";
const authClient = create({
baseURL: "https://wpdauth.pinear.com.br/users",
baseURL: "http://wpd.brazilsouth.cloudapp.azure.com/users",
});
const authChangePswdClient = create({
baseURL: "https://wpdauth.pinear.com.br/forgotpasswords"
baseURL: "http://wpd.brazilsouth.cloudapp.azure.com/forgotpasswords"
})
export { authClient, authChangePswdClient};
Loading…
Cancel
Save