@heroitvn/google
v0.1.1
Published
Google Sign-In and One Tap UI for Next.js + Supabase
Downloads
25
Readme
@heroitvn/google
Google Sign-In and Google One Tap UI for Next.js, integrated with Supabase session flows via @heroitvn/supabase.
Environment variables
NEXT_PUBLIC_GOOGLE_CLIENT_ID— OAuth 2.0 Web client ID (used by One Tap and button flows).
Exports
@heroitvn/google/google-sign-in-button
Button-oriented Google sign-in UI (see src/google-sign-in-button.tsx).
@heroitvn/google/one-tap-google-sign-in
One Tap prompt component (see src/one-tap-google-sign-in.tsx).
@heroitvn/google/nonce
Nonce helpers for secure OAuth / CSP integration (generateNonce is also re-exported from @heroitvn/utils for convenience in the app).
Peer dependencies
next>= 14react>= 18
Dependencies
@heroitvn/supabasegoogle-one-tapsonner(toasts)
Scripts
| Command | Description |
| ------------------- | -------------- |
| npm run typecheck | tsc --noEmit |
License
MIT
