updated config api

This commit is contained in:
Warunee Tamkoo 2024-12-17 11:29:25 +07:00
parent 8408edde9f
commit 5556c49f0e
2 changed files with 3 additions and 3 deletions

View file

@ -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: {

View file

@ -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,