Files
CheckInApp/apps/frontend/src/main.ts
T

16 lines
335 B
TypeScript

import { createApp } from 'vue'
import App from './App.vue'
import { useAuth } from './app/auth'
import { initTheme } from './app/theme'
import './style.css'
initTheme()
const auth = useAuth()
if (auth.state.token && !auth.state.initialized) {
void auth.refreshCurrentUser().catch(() => undefined)
}
createApp(App).mount('#app')