Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@openmobilehub/auth-google
Advanced tools
React Native OMH Auth - Google (GMS/non-GMS) streamlines Google authentication integration into React Native applications, accommodating both GMS and non-GMS devices.
npm add @openmobilehub/auth-google
To access Google APIs, please follow these steps in order to obtain the Client ID:
Add a new entry to your android/local.properties file:
GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID>
Add a new entry to your .env file:
GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID>
Before interacting with Google, initialization of the Google Auth Client is necessary, requiring platform specific configuration to be set.
import GoogleAuthClient from '@openmobilehub/auth-google';
await GoogleAuth.initialize({
android: {
scopes: ['openid', 'profile', 'email'],
},
ios: {
scopes: ['openid', 'profile', 'email'],
clientId: process.env.GOOGLE_CLIENT_ID,
redirectUrl: `com.googleusercontent.apps.${
process.env.GOOGLE_CLIENT_ID.split('.')[0]
}:/oauth2redirect/google`,
},
});
:::warning[KNOWN LIMITATIONS]
On a GMS enabled device, Google SDK automatically refreshes the access token in the background. Refreshing the access token manually on a GMS enabled device is not supported as of now. Instead the current access token will be returned when calling the refreshAccessToken
method.
:::
Interacting with the Google provider follows the same pattern as other providers since they all implement the IAuthModule
interface. For a comprehensive list of available methods, refer to the Quick Start guide.
FAQs
React Native OMH Auth - Google (GMS/non-GMS) streamlines Google authentication integration into React Native applications, accommodating both GMS and non-GMS devices.
The npm package @openmobilehub/auth-google receives a total of 3 weekly downloads. As such, @openmobilehub/auth-google popularity was classified as not popular.
We found that @openmobilehub/auth-google 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 uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.