The Complete Guide to Vue User Authentication with Auth0

Hi Dan,

Thank you for the guide.

I get the following error when inplementing this with Vue 2.
This is when I load the site.

TypeError: Object(…) is not a function
at _callee2$ (auth0-plugin.js:66:1)
at tryCatch (runtime.js:64:1)
at Generator.invoke (runtime.js:299:1)
at Generator.eval [as next] (runtime.js:124:1)
at asyncGeneratorStep (asyncToGenerator.js:3:1)
at _next (asyncToGenerator.js:22:1)
at eval (asyncToGenerator.js:27:1)
at new Promise ()
at eval (asyncToGenerator.js:19:1)
at Vue.created (auth0-plugin.js:66:1)

What can be wrong?

/Karl

Hello, @kalle.elmberg ! Could you please try our latest Developer Guide?

It also has a companion code sample that simplifies troubleshooting :slight_smile: The preview card says “Composition API” but the link will take you to the Vue.js v2 guide that uses the Options API :+1:

I have finished. the code completely in Vue3. Followed this Repo: Vue3 version of Auth0 plugin from medium article: https://medium.com/@iamkether/provide-inject-async-plugins-with-vue3-e424525af6ae · GitHub

But getting following error:


Plase do needfull.

It is keep on saying ClientID missing
image
even it is properly passed. I am using V2.0.0.
also many dev used this way : import createAuth0Client from “@auth0/auth0-spa-js”;
but when I use this way. I got saying saying