Learn how to create a Vue plugin to manage user authentication.
I would love to level up my Vue skills! Please let us know when the article gets added
scorpion ~/TMP git clone -b starter firstname.lastname@example.org:auth0-blog/auth0-vue-sample.gitClonage dans ‘auth0-vue-sample’…
Permission denied (publickey).
fatal: Unable to read remote repository.
Please check that you have the access rights and that the repository exists.
scorpion ~/TMP git clone -b starter https://github.com/auth0-samples/auth0-vue-samples.git
Clonage dans ‘auth0-vue-samples’…
fatal: The remote starter branch was not found in the origin upstream repository
Hello, Claude. This error may relate to your local SSH configuration. You can use this resource to set that up or verify that your configuration is correct:
As an alternative, you may also clone the repo using HTTPS or you may download the project from GitHub.
Thanks, in the meantime I cloned the project and am working on it. Thanks, Claude.
Let us know if you have other questions down the road!
Thanks for the great content. Quick question. Do you have any plans to do this using Vue 3? I am relatively new to Vue (and Auth0) and want to use Vue 3 in my project.
Maybe this article will be of any help:
Hello, Martin! @holly and I are discussing what strategy we’d need to take for creating the same type of Plugin in Vue 3! Stay tuned for any news on this
Thanks for the update Dan @dan-auth0. I will keep an eye out for any new content.
Thanks Konrad @konrad.sopala. I’m just reading through the article now. It’s more generally about Vue3 and Vue2 differences, rather than how to integrate Auth0, but still a good worthwhile read for me, so thank you and @holly for writing it.
Just wanted to help anyhow as I don’t have any experience with Vue
Has there been any movement on this yet? I have a Vue3 Composition API project underway and would love to use Auth0 for Authentication services. I’ve tried various ways of trying to get the Vue2 version to work in my project but it’s been beyond me.
Would be great for an update.
2 github repos there that implement auth0 plugin with vue3
Thanks for the link, but I had already seen those and could not get them to work. It is not super urgent for me at the moment as I have plenty of other tasks to do, so I’ll wait for an official method form Auth0 hopefully.
strange… if you try the vue2 examples, it won’t work, in the link i’ve posted, the are 2 commnets that link to github repos that actually work with vue3 (the plugin is written with composition api).
i’ve managed to make it work… so if you need anyhelp just ask
Thanks for the offer. I will go and take a look again at the referenced projects. Maybe I didnt try hard enough! From memory I think what I struggled with was converting what I found to Typescript. But hey, I’ll take another look and if I get stuck I’ll let you know.
Thanks! Very clear and interesting tutorial.
Could I suggest a similar one but this time on
how set up and handle user roles in Auth0 + VUE?
Hey there @ferlito.sergio!
I just created an internal request for such content for our Content Team to advocate for your need!
Howdy, Martin! I was out on holiday vacation and I am back now. We don’t have any guidance yet on Vue 3 but I think the best path to implementation is through Vuex rather than a plugin. That’s what I was discussing internally. I’ll be working on another project so I’ll be passing the torch to someone to continue this research We’ll keep this topic thread updated