mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-04 12:23:29 +00:00
3f15681af0
Nuxt Auth expects a normal API to poll the user data on refresh, like "/user/me". Due to Jellyfin needing the user's ID to fetch their information, this commit registers a new Auth plugin and a persistent Vuex store, saved to localStorage, to perform the request manually when Nuxt starts up. It then sets all the required information before the client properly starts, meaning the information is always fresh when the user refreshes the page. |
||
---|---|---|
.. | ||
index.ts | ||
snackbar.ts | ||
user.ts |