# Plugin
WARNING
The plugin does not automatically register the components
To register the plugin, first you must provide a GdprManagerFactory
(opens new window) as well as a GdprSavior
(opens new window). Once you've got both, you can pass them into the plugin's registration options object :
import Vue from "vue"
import { VueGdprGuard } from "vue-gdpr-guard"
import { GdprManagerBuilder, GdprStorage } from "gdpr-guard"
const savior = /* [...] */;
const factory = () => {
return GdprManagerBuilder.make()
// [...]
.build();
};
Vue.use(VueGdprGuard, {
factory,
savior,
});
← Exports Components →