Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@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
:::info[Prerequisites]
Each plugin requires you to follow the iOS and Android configuration prior to interacting with it.
:::
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>
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: '<YOUR_GOOGLE_CLIENT_ID>',
redirectUrl: `com.googleusercontent.apps.${
'<YOUR_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 4 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.