
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
@futureverse/auth-react-native
Advanced tools
Provides React Native authentication components and providers for [Futureverse Auth](https://www.npmjs.com/package/@futureverse/auth). This library enables seamless Pass authentication integration in React Native and Expo applications.
Provides React Native authentication components and providers for Futureverse Auth. This library enables seamless Pass authentication integration in React Native and Expo applications.
npm install @futureverse/auth-react-native
Required peer dependencies:
npm install @tanstack/react-query viem
import React from 'react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { AuthClient, AuthUiProvider, DefaultTheme } from '@futureverse/auth-react-native';
const queryClient = new QueryClient();
const authClient = new AuthClient({
clientId: 'your-futureverse-client-id',
postSignInredirectUri: 'your-app-redirect-uri',
environment: 'production', // or 'staging'
});
const themeConfig = {
colors: {
...DefaultTheme.colors,
primaryBackground: '#000000',
},
};
export default function App() {
return (
<QueryClientProvider client={queryClient}>
<AuthUiProvider
themeConfig={themeConfig}
authClient={authClient}
appKitOptions={appKitOptions} // Optional for wallet connections
>
{/* Your app components */}
</AuthUiProvider>
</QueryClientProvider>
);
}
import React from 'react';
import { View, Button, Text } from 'react-native';
import { useAuth, useAuthUi } from '@futureverse/auth-react-native';
export default function HomeScreen() {
const { openLogin } = useAuthUi();
const { authClient, userSession } = useAuth();
const handleLogin = () => {
openLogin();
};
const handleLogout = async () => {
await authClient.signOut();
};
return (
<View>
{userSession ? (
<>
<Text>Welcome! User ID: {userSession.user?.id_token}</Text>
<Button title="Logout" onPress={handleLogout} />
</>
) : (
<Button title="Login" onPress={handleLogin} />
)}
</View>
);
}
Main authentication client for React Native applications.
const authClient = new AuthClient({
clientId: string;
postSignInredirectUri: string;
environment: 'production' | 'staging';
});
Customize the authentication UI:
import { DefaultTheme } from '@futureverse/auth-react-native';
const customTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primaryBackground: '#your-color',
},
};
The library uses secure storage by default:
FAQs
Provides React Native authentication components and providers for [Futureverse Auth](https://www.npmjs.com/package/@futureverse/auth). This library enables seamless Pass authentication integration in React Native and Expo applications.
The npm package @futureverse/auth-react-native receives a total of 73 weekly downloads. As such, @futureverse/auth-react-native popularity was classified as not popular.
We found that @futureverse/auth-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.