mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 05:56:29 +00:00
16 lines
335 B
TypeScript
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')
|