How to Access pinia store inside a nuxt route middleware ?

Hello ! I'd like to redirect user based on current pinia state. Currently in the defineNuxtRouteMiddleware I only have access to to and from routes. How can I achieve what I want ?
1 Reply
Cue
Cue2y ago
You can use composables within a route middleware
Want results from more Discord servers?
Add your server