Initial commit from monorepo
This commit is contained in:
8
app/plugins/logto-tokens.server.ts
Normal file
8
app/plugins/logto-tokens.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* 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()
|
||||
})
|
||||
Reference in New Issue
Block a user