Help on modifying sample code for TypeScript and Vue3

Hi Richard

I too have a Vue3 Typescript project on the go and I have started trying to integrate Auth0 login into my landing page. As you say, there currently is no official Vue3 sample whether in JS or TS. I did find another post on here where a guy called @lstyles has put together a JS version of the current Vue2 sample, and I have cloned his project (GitHub - lstyles/vue3-auth0-sample) stripped it right back and have it working as a standalone project in a similar way to the functionality I require.

I am about to try integrating this into my TS project (I am also fairly new at TS). For now I am not planning to rewrite lucas’ code in TS as I figure you should be able to use the JS as is.

The solution to the

Could not find a declaration file for module ‘./auth’

can be solved by adding an entry to your tsconfig.json

“allowJs”: true

Hope that helps if you haven’t worked that out already, as I note your post was over 2 weeks ago now.

Regards,
Martin