0.1.4 • Published 9 months ago

@gomdle/solid-gsi v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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')
});
0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

10 months ago

0.1.1

1 year ago

0.1.0

1 year ago