Comments (4)
Sure, this should be no problem. All the components you create in your app are just Vue instances with a name; think of auth wrapper in this sample as just another component that does not have a render template.
Here's a quick thread I found on performance, which might alleviate concerns.
from auth0-vue-samples.
Thanks for raising. We mainly do that for the reactivity you get out of the box for properties like isLoading
, isAuthenticated
, user
, etc. When the auth state changes it enables us to propagate those changes easily.
from auth0-vue-samples.
Thanks for the quick reply @stevehobbsdev. That definitely makes sense. I'm curious though, as I'm still pretty new to Vue, if it's kosher to construct a new instance in a plugin. Is this something you'd recommend in a non-example, production setting?
from auth0-vue-samples.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
from auth0-vue-samples.
Related Issues (20)
- Vue 3 support HOT 2
- Does not work with Vue 3 HOT 2
- Doesn't Work HOT 5
- Files not in sync with the docs HOT 1
- Vue SPA + API backend HOT 4
- Can you update the quick start guides with this code HOT 1
- isAuthenticated set to true in handleRedirectCallback HOT 5
- Auth skipped when curled to profile page HOT 5
- Login required after refreshing browser HOT 2
- I can't create a sample build in vue js v3 HOT 1
- Using getTokenSilently() doesn't update $auth.user object HOT 5
- Support for vue 3 HOT 1
- Flash profile page when accessed by URL HOT 2
- Vue 3 Incompatible HOT 2
- M1 Support HOT 2
- clicking on login does nothing? HOT 5
- Uncaught TypeError: Cannot destructure property 'getAccessTokenSilently' of 'useAuth0(...)' as it is undefined. HOT 6
- Different Router setup for routerGuard HOT 1
- Is auth0-vue development stopped? HOT 2
- Redirect users to a page after a signup to show "Please verify your email."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0-vue-samples.