9 lines
246 B
TypeScript
9 lines
246 B
TypeScript
/**
|
|
* 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()
|
|
})
|