


The initial access_token obtained by this package will last for only one hour ( For security reasons). Like in detail, this blog helps in creating your application in the Google developer console and access clientId. But it's missing in some ways which are addressed in this blog. The documentation they provided for this repository is awesome. They also provide custom hooks like useGoogleLogin and useGoogleLogout so it will be easy for hooks lovers. You can either directly use their GoogleLogin component or you can use custom buttons. Which provides simple mechanisms to add the Google login. I found a package which is called as react-google-login. Websites can also get essential information about users without spending much time in forms.Īnd specifically in our case, we don't need a server to authenticate or to get initial details of the user.So no need of remembering multiple passwords. It doesn't require any credentials from the user.(or additionally) you can add server configurations too to authenticate with your server. (Basic, OAuth, etc) This blog helps you create a standalone backend less authentication for your react app. It does have some multiple cases to be maintained based on authentication mechanisms. As we need to handle authentication in the server and maintain the code. As a client developer, Creating apps with authentication might be a tedious process.
