@gomdle/solid-gsi
v0.1.4
Published
Google Sign-In for SolidJs
Downloads
151
Readme
Google Sign-In for SolidJs
Installing
npm install @gomdle/solid-gsi
Google Default Signin Button
import { GoogleSignin } from "@gomdle/solid-gsi";
<GoogleSignin
client_id="your_google_oauth_client_id"
useOneTap
cancel_on_tap_outside={false}
onSuccess={credential => console.log('*** success', credential)}
onError={() => console.error('*** error')}
/>
One Tab Signin UI Only
import { createGoogleOneTapSignin } from "@gomdle/solid-gsi";
createGoogleOneTapSignin({
client_id: "your_google_oauth_client_id",
cancel_on_tap_outside: false,
hosted_domain: "your-host.com",
onSuccess: credential => console.log('*** success', credential),
onError: () => console.error('*** error')
});