
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@zestic/oauth-expo
Advanced tools
OAuth 2.0 authentication library for Expo and React Native applications, built on top of @zestic/oauth-core.
npm install @zestic/oauth-expo @zestic/oauth-core
import React from 'react';
import { ExpoOAuthAdapter, OAuthCallbackScreen } from '@zestic/oauth-expo';
import type { ExpoOAuthConfig } from '@zestic/oauth-expo';
// Configure your OAuth provider
const config: ExpoOAuthConfig = {
clientId: 'your-client-id',
redirectUri: 'yourapp://oauth/callback',
scopes: ['read', 'write'],
scheme: 'yourapp',
path: 'oauth/callback',
endpoints: {
authorization: 'https://provider.com/oauth/authorize',
token: 'https://provider.com/oauth/token',
revocation: 'https://provider.com/oauth/revoke',
},
};
// Initialize the OAuth adapter
const oauthAdapter = new ExpoOAuthAdapter(config);
// Use in your app
export default function App() {
const handleLogin = async () => {
try {
const result = await oauthAdapter.authenticate();
console.log('Authentication successful:', result);
} catch (error) {
console.error('Authentication failed:', error);
}
};
return (
<OAuthCallbackScreen
config={config}
onSuccess={(tokens) => console.log('Success:', tokens)}
onError={(error) => console.error('Error:', error)}
/>
);
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
Apache-2.0
Made with create-react-native-library
FAQs
Library for using oauth-core with Expo and React Native
The npm package @zestic/oauth-expo receives a total of 0 weekly downloads. As such, @zestic/oauth-expo popularity was classified as not popular.
We found that @zestic/oauth-expo 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 Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.