
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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
# or
yarn add @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.
MIT
Made with create-react-native-library
FAQs
Library for using oauth-core with Expo and React Native
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.