
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
react-native-safetynet-client
Advanced tools
Google provides an API to verify device integrity and detect harmful apps. See the SafetyNet documentation for more information.
$ npm install react-native-safetynet-client
or
$ yarn add react-native-google-safetynet-client
$ react-native link react-native-safetynet-client
android/app/src/main/java/[...]/MainActivity.javaimport com.arifaydogmus.safetynet.RNSafetyNetPackage; to the imports at the top of the filenew RNSafetyNetPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-safetynet-client'
project(':react-native-safetynet-client').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-safetynet-client/android')
android/app/build.gradle:
implementation project(':react-native-safetynet-client')
import RNSafetyNetClient from 'react-native-safetynet-client';
// STEP 1: Send nonce request to server with device unique id
const deviceId =
'You can use the "react-native-device-info" module to get the unique id of device';
const nonceResult = await RNSafetyNetClient.requestNonce({
endPointUrl: 'https://your-server/nonce-creator-endpoint',
additionalData: deviceId,
});
if (!nonceResult.nonce || nonceResult.error) {
console.log(nonceResult.error);
return;
}
// STEP 2: Send attestation request to Google Play
const attestationResult = await RNSafetyNetClient.sendAttestationRequest(
nonceResult.nonce,
'YOUR API KEY'
);
if (!attestationResult.jws || attestationResult.error) {
console.log('Attestation request failed.');
return;
}
// STEP 3: Pass the JSW to your server for verification.
const verification = await RNSafetyNetClient.verifyAttestationResult({
endPointUrl: 'https://your-server/verification-endpoint',
attestationJws: attestationResult.jws,
});
FAQs
Google SafetyNet Attestation implementation for React Native
The npm package react-native-safetynet-client receives a total of 0 weekly downloads. As such, react-native-safetynet-client popularity was classified as not popular.
We found that react-native-safetynet-client demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.