
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
react-native-nitro-google-sso
Advanced tools
A Simple React Native module for implementing Google Sign-In (SSO) functionality in your React Native applications uses Google Sign-In SDK on iOS and Credential Manager on Android.
[!IMPORTANT]
To useGoogle Sign-In Button
you need to install React Native version v0.78.0 or higher.
bun add react-native-nitro-google-sso react-native-nitro-modules
# or
npm install react-native-nitro-google-sso
# or
yarn add react-native-nitro-google-sso
Before using this module, you need to:
First, you need to configure the module with your Google credentials. It's recommended to do this in your app's entry point:
import NitroGoogleSSO from 'react-native-nitro-google-sso'
// Configure the module
NitroGoogleSSO.configure({
iosClientId: 'YOUR_IOS_CLIENT_ID',
webClientId: 'YOUR_WEB_CLIENT_ID',
nonce: 'YOUR_NONCE', // Optional security nonce
})
To sign in with Google:
try {
const user = await NitroGoogleSSO.signIn()
if (user) {
console.log('User signed in:', user)
} else {
console.log('User cancelled sign in')
}
} catch (error) {
console.error('Sign in error:', error)
}
To sign in with Google using the one tap sign in:
try {
const user = await NitroGoogleSSO.oneTapSignIn()
if (user) {
console.log('User signed in:', user)
} else {
console.log('User cancelled sign in')
}
} catch (error) {
console.error('Sign in error:', error)
}
To get the currently signed-in user's information:
try {
const user = await NitroGoogleSSO.getCurrentUser()
if (user) {
console.log('Current user:', user)
} else {
console.log('No user is signed in')
}
} catch (error) {
console.error('Error getting current user:', error)
}
To sign out the current user:
try {
await NitroGoogleSSO.signOut()
console.log('User signed out successfully')
} catch (error) {
console.error('Sign out error:', error)
}
interface NitroGoogleSSOConfig {
iosClientId: string
webClientId: string
nonce?: string
hostedDomain?: string
}
The user information returned by the sign-in process. The exact structure depends on the information requested during the sign-in process.
This module supports both iOS and Android platforms.
Always wrap the module's methods in try-catch blocks as they may throw errors in various scenarios:
Bootstrapped with create-nitro-module.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
MIT
FAQs
Nitro module package
The npm package react-native-nitro-google-sso receives a total of 19 weekly downloads. As such, react-native-nitro-google-sso popularity was classified as not popular.
We found that react-native-nitro-google-sso demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.