guruahn / vue-google-oauth2

🔌 Handling Google sign-in and sign-out for Vue.js applications
MIT License
183 stars 55 forks source link

How to make it so this work properly with Typescript? #65

Closed alexdpoon closed 1 year ago

alexdpoon commented 3 years ago

I got rid of TS lint errors by doing this:

import GAuth from 'vue-google-oauth2'
import Vue from 'vue'
declare module 'vue/types/vue' {
  interface Vue {
    $gAuth: any
  }
}

But specifying it as any doesn't really enforce types. Can someone help me figure out to make $gAuth the correct type?

skrzypczynskiM commented 2 years ago

Did you figure it out?

abhijeetj100 commented 2 years ago

Hi, Just started using this Plugin, curious to know if there is any development related to proper types for $gauth?

guruahn commented 1 year ago

This plugin does not support the new Google authentication system(GIS). You need to migrate by referring to this document. I'm sorry to tell you this news.