Merge branch 'main' into develop

# Conflicts:
#	.env.production
#	entrypoint.sh
#	src/views/MainView.vue
This commit is contained in:
Warunee Tamkoo 2024-11-01 13:03:25 +07:00
commit 1f8c3ac144
4 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,7 @@
const ACCESS_TOKEN = 'BMAHRISCKI_KEYCLOAK_IDENTITY'
const key_C_Config = {
url_Logout: import.meta.env.VITE_URL_SSO,
}
interface AuthResponse {
access_token: string
@ -15,7 +18,7 @@ async function setAuthen(r: AuthResponse) {
async function logout() {
await deleteCookie(ACCESS_TOKEN)
window.location.href = '/login'
window.location.href = key_C_Config.url_Logout
}
async function getToken() {