UNPKG

react-native-social-x-auth

Version:

A lightweight React Native library for authenticating with X (formerly Twitter) using OAuth 2.0 with PKCE. Provides a secure and seamless login experience through Android Custom Tabs and iOS Safari ViewController. Built specifically for integrating X auth

14 lines 437 B
interface AuthOptions { clientId: string; redirectUri: string; scopes?: string[]; onSuccess?: (code: string, codeVerifier: string) => void; onError?: (error: Error) => void; } export declare function useXAuth({ clientId, redirectUri, scopes, onSuccess, onError, }: AuthOptions): { startAuth: () => Promise<void>; loading: boolean; error: string | null; }; export {}; //# sourceMappingURL=useXAuth.d.ts.map