websanova / vue-auth

A simple light-weight authentication library for Vue.js
MIT License
2.36k stars 380 forks source link

Vue 3 Typescript not working, types missing #675

Closed squareloop1 closed 2 years ago

squareloop1 commented 2 years ago

It seems like this library is not working with a Vue 3 Typescript setup at all. There are some types missing like createAuth useAuth and configuration objects.

I tried to supplement the types myself but I'm lacking a bit of knowledge on how to write declarations for libraries.

squareloop1 commented 2 years ago

I've created a PR with some missing types. Its really basic though but the current types are full of any anyways. I'm not sure how to declare types for the drivers. Maybe someone else has a clue?