updated config api
This commit is contained in:
parent
8408edde9f
commit
5556c49f0e
2 changed files with 3 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ async function logout() {
|
|||
await deleteCookie("BMAHRIS_KEYCLOAK_IDENTITY");
|
||||
await deleteCookie("BMAHRIS_KEYCLOAK_REFRESH");
|
||||
|
||||
router.push("/sso");
|
||||
window.location.href = `${import.meta.env.VITE_URL_SSO}`;
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
@ -98,7 +98,7 @@ onMounted(async () => {
|
|||
if (!checkToken && !token.value) {
|
||||
await axios
|
||||
.post(
|
||||
`${import.meta.env.VITE_URL_SSO}/kcauth`,
|
||||
`${import.meta.env.VITE_API_SSO}/kcauth`,
|
||||
{},
|
||||
{
|
||||
headers: {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ async function onSubmit() {
|
|||
|
||||
await axios
|
||||
.post(
|
||||
`${import.meta.env.VITE_URL_SSO}/signin`,
|
||||
`${import.meta.env.VITE_API_SSO}/signin`,
|
||||
{
|
||||
username: username.value,
|
||||
password: password.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue