{"library":"ra-auth-google","title":"ra-auth-google","description":"An auth provider for react-admin v5+ that integrates Google Identity Services (GIS) for sign-in with Google, One Tap, and automatic sign-in. Current stable version is 3.0.0, released November 2024, with monthly updates. Simplifies authentication by providing an authProvider, LoginButton, OneTapButton, and httpClient. Key differentiators: tightly coupled with react-admin, supports client-side GIS features only, and removes the previous useGoogleAuthProvider/GoogleAuthContext in v3.0.0.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install ra-auth-google"],"cli":null},"imports":["import { googleAuthProvider } from 'ra-auth-google'","import { googleHttpClient } from 'ra-auth-google'","import { LoginButton } from 'ra-auth-google'","import { OneTapButton } from 'ra-auth-google'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { Admin, Resource, Login } from 'react-admin';\nimport { googleAuthProvider, googleHttpClient, LoginButton } from 'ra-auth-google';\n\nconst authProvider = googleAuthProvider({\n    clientId: process.env.VITE_GOOGLE_CLIENT_ID ?? '',\n});\n\nconst httpClient = googleHttpClient({\n    clientId: process.env.VITE_GOOGLE_CLIENT_ID ?? '',\n});\n\nconst App = () => (\n    <Admin authProvider={authProvider} loginPage={LoginButton}>\n        <Resource name=\"posts\" />\n    </Admin>\n);\n\nexport default App;","lang":"typescript","description":"Minimal setup: configure googleAuthProvider and googleHttpClient with client ID, and use LoginButton as login page.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}