I am trying to create an app using nuxt 3 and I need to implement CASL as a plugin using defineNuxtPlugin which can fetch the user permissions from database and create the abilities from the data fetched from db
Tried searching the web for a solution but all I get is old codes for nuxt 2 which are not using defineNuxtPlugin