diff --git a/src/index.js b/src/index.js index d06ba48..616102f 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ export default { const options = Object.assign({}, defaultParams, params) if (assertOptions(options).hasError) throw new Error(`Invalid options given: ${assertOptions(options).error}`) - const watch = await vue2AndVue3Reactive( + const watch = await vue3Reactive( app, defaultEmptyVueKeycloakInstance() ) @@ -67,8 +67,8 @@ function defaultEmptyVueKeycloakInstance() { } } -function vue2AndVue3Reactive(app, object) { - return new Promise((resolve, reject) => { +function vue3Reactive(app, object) { + return new Promise((resolve) => { // Vue 3 // Assign an object immediately to allow usage of $keycloak in view