DEV Community

Discussion on: How to Implement Nuxt.js/Vue.js OAuth2 Authentication With an External REST-API Server (based on Vert.x/Kotlin) and Keycloak 🐬

Collapse
 
nickbolles profile image
Nick Bolles • Edited

But your copying and pasting the typings. From my SO answer, you can add @types/nuxtjs__auth as a npm dev dependency and then add the package name to your tsconfig -> compilerOptions.types array.

Also, the "typings" key in your package.json is for including typings in published npm packages. And ussually that's not how nuxt is used (nuxt apps just consume typings, nothing usually consumes the nuxt app itself besides the nuxt-cli, so there's no need to define typings for the nuxt app)

Thread Thread
 
johanneslichtenberger profile image
Johannes Lichtenberger

Ah, no, your answer is new, I think :-) thanks