@gsb-core/react-oauth
v0.1.0
Published
Deprecated compatibility package; use @gsb-core/react-auth
Readme
@gsb-core/react-oauth
OAuth authentication components and services for GSB React applications.
Features
- Google OAuth integration with Google Identity Services
- Facebook OAuth integration
- Standardized social authentication data handling
- OAuth callback handling
- OAuth registration continuation flow
- Reusable OAuth components
Components
OAuthCallback- Handles OAuth provider callbacksOAuthRegistrationContinue- Registration continuation for OAuth usersGoogleOneTap- Google One Tap sign-in componentSimpleGoogleButton- Simple Google sign-in button
Services
authService- Core authentication service with OAuth methodssimpleGoogleAuth- Simplified Google authentication servicegoogleAuth- Google Identity Services utilities
Types
SocialProvider- Enum for supported OAuth providersStandardizedSocialAuthData- Standardized interface for social auth dataSocialAuthResult- Result interface for social authentication
Usage
import { OAuthCallback, OAuthRegistrationContinue } from '@gsb-core/react-oauth';
// Use in your routes
<Route path="/auth/callback" element={<OAuthCallback />} />
<Route path="/auth/continue" element={<OAuthRegistrationContinue />} />