UNPKG

@m-media/vue3-gate-keeper

Version:

Add gates to allow or deny requests in your Vue3 app

8 lines (6 loc) 249 B
import { inject } from 'vue' // You should import this key during the plugin install when calling the provide function export const gatekeeperKey = Symbol.for("gateKeeper"); export const useGateKeeper = () => { return inject(gatekeeperKey); };