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
13 lines (10 loc) • 447 B
text/typescript
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
/**
* Opens the given URL in the internal browser (Custom Tabs / SFSafariViewController)
* Returns a Promise<boolean> with true if the URL was opened successfully
*/
open(url: string): Promise<boolean>;
}
export default TurboModuleRegistry.getEnforcing<Spec>('SocialXAuth');