10 lines
196 B
TypeScript
10 lines
196 B
TypeScript
export default defineNuxtPlugin(async () => {
|
|
const authStore = useAuthStore();
|
|
await useLazyAsyncData(
|
|
async () => {
|
|
return authStore.getMe();
|
|
},
|
|
{ server: false }
|
|
);
|
|
});
|