anthonyjgrove / react-google-login

A React Google Login Component
https://anthonyjgrove.github.io/react-google-login
MIT License
1.85k stars 426 forks source link

fix: type for onFailure #471

Open haynesgt opened 3 years ago

haynesgt commented 3 years ago

Makes the types match the actual code in

https://github.com/anthonyjgrove/react-google-login/blob/7db5b9686a70ded6b090a9c01906ca978b00a54d/src/use-google-logout.js#L34 https://github.com/anthonyjgrove/react-google-login/blob/7db5b9686a70ded6b090a9c01906ca978b00a54d/src/use-google-login.js#L136

The elements of GoogleAuthError don't all seem to be documented, but the description field showed up in practice.