I used this thread a year ago and today while running the same old Vue 3 app again, I am facing these strange bugs related to auth0.
Just because I happen to use the latest version of Vue, I have to go through the struggle of figuring out a way to make this work. Why can’t you guys just give it some attention and make it support Vue 3 officially?
I figured it would be a good idea to give an update here as well, we are actively working on a dedicated SDK for using Auth0 within a Vue 3 application. This means that, any time soon, we will be announcing a beta release of this SDK as well as ship a new quickstart that explains how to use this new SDK with a Vue 3 application. I can’t give any exact timeframe yet, but it should be available in a couple of weeks.
Once the beta is announced (an announcement should happen on the community platform as well), please know that any feedback is appreciated!
We currently have a Vue2 website running for our company, but we are forced to upgrade to Vue3 from other directions. We do not have the capacity to upgrade now using one Auth0 method, and in a couple of weeks again rewrite because Auth0’s recommended method changed.
At the current time, what is the recommended way of using Auth0 in Vue3?
Oh no, not another option . Please just give us some stability.
By popular demand we are improving the developer experience to integrate Auth0 in Vue by introducing our official Vue Plugin. I believe by doing so we are trying to improve stability and ensuring our users have less things to worry about when implementing Auth0.
Important to note here is that I believe there shouldn’t be no real reason to rewrite it again in a couple of weeks when we release our SDK.
Ofcourse, we encourage to use our SDK, as it allows to integrate things with the least amount of effort, but if your solution works using Auth0’s SPA-JS, I believe it should be fine for the most part (you will just need to take care of some Vue specific things yourself instead of relying on our Vue SDK).
That said, eventually moving to the new SDK isn’t a bad idea, but not something that I feel like need to be done with high urgency.
At the current time, what is the recommended way of using Auth0 in Vue3?
I believe, currently, there hasn’t been much of a change yet. The advice mentioned above could still be applicable. Once our SDK and Quickstart are released, the approach used there will be the recommended way (which again doesn’t mean it invalidates your current approach using Auth0-SPA-JS directly).
Also note that the Vue SDK will use Auth0-SPA-JS under the hood, meaning that migrating to the Vue SDK shouldn’t be very complicated when u are already using Auth0-SPA-JS, as the underlying pieces are identical.