mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
add / after cli callback host
This commit is contained in:
@@ -36,7 +36,7 @@ export const Login = () => {
|
||||
const callbackPort = queryParams.get("callback_port")
|
||||
|
||||
// send post request to cli with details
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}`
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}/`
|
||||
const instance = axios.create()
|
||||
await instance.post(cliUrl, { email: userDetails.email, privateKey: localStorage.getItem("PRIVATE_KEY"), JTWToken: getAuthToken() })
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export const InitialStep = ({ setStep, email, setEmail, password, setPassword }:
|
||||
return;
|
||||
}
|
||||
// case: login was successful
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}`;
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}/`;
|
||||
|
||||
// send request to server endpoint
|
||||
const instance = axios.create();
|
||||
|
||||
@@ -108,7 +108,7 @@ export const MFAStep = ({
|
||||
|
||||
if (isCliLoginSuccessful && isCliLoginSuccessful.success){
|
||||
// case: login was successful
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}`
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}/`
|
||||
|
||||
// send request to server endpoint
|
||||
const instance = axios.create()
|
||||
|
||||
@@ -62,7 +62,7 @@ export const PasswordStep = ({
|
||||
return;
|
||||
}
|
||||
// case: login was successful
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}`
|
||||
const cliUrl = `http://127.0.0.1:${callbackPort}/`
|
||||
|
||||
// send request to server endpoint
|
||||
const instance = axios.create()
|
||||
|
||||
Reference in New Issue
Block a user