/**
 * Server plugin to initialize Logto tokens on SSR.
 * Fetches all access tokens and stores in useState for client hydration.
 */
export default defineNuxtPlugin(async () => {
  const { initTokens } = useLogtoTokens()
  await initTokens()
})
