diff --git a/README.md b/README.md index 8f2c676..4695b55 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,11 @@ ## Installation ```sh -npm install @think-grid-labs/react-native-shield +npm install @thinkgrid/react-native-shield # or -yarn add @think-grid-labs/react-native-shield +yarn add @thinkgrid/react-native-shield # or -pnpm add @think-grid-labs/react-native-shield +pnpm add @thinkgrid/react-native-shield ``` ### iOS Setup @@ -68,7 +68,7 @@ import { getAllSecureKeys, clearAllSecureStorage, requestIntegrityToken, -} from '@think-grid-labs/react-native-shield'; +} from '@thinkgrid/react-native-shield'; ``` --- diff --git a/Shield.podspec b/Shield.podspec index d19c526..fa10eb8 100644 --- a/Shield.podspec +++ b/Shield.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.authors = package["author"] s.platforms = { :ios => min_ios_version_supported } - s.source = { :git => "https://github.com/ThinkGrid-Labs/react-native-shield.git", :tag => "#{s.version}" } + s.source = { :git => "https://github.com/thinkgrid-labs/react-native-shield.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift,cpp}" s.private_header_files = "ios/**/*.h" diff --git a/docs/contributing.md b/docs/contributing.md index dad85db..1f9ed52 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -1,11 +1,11 @@ # Contributing -See [CONTRIBUTING.md](https://github.com/ThinkGrid-Labs/react-native-shield/blob/main/CONTRIBUTING.md) for the full development guide. +See [CONTRIBUTING.md](https://github.com/thinkgrid-labs/react-native-shield/blob/main/CONTRIBUTING.md) for the full development guide. ## Quick start ```sh -git clone https://github.com/ThinkGrid-Labs/react-native-shield +git clone https://github.com/thinkgrid-labs/react-native-shield cd react-native-shield pnpm install ``` @@ -30,6 +30,6 @@ pnpm lint ## Opening issues -Report bugs and request features at [github.com/ThinkGrid-Labs/react-native-shield/issues](https://github.com/ThinkGrid-Labs/react-native-shield/issues). +Report bugs and request features at [github.com/thinkgrid-labs/react-native-shield/issues](https://github.com/thinkgrid-labs/react-native-shield/issues). Items on the [Roadmap](/roadmap) marked `[ ]` are open for contribution — open an issue first to discuss your approach before submitting a PR. diff --git a/docs/guide/app-environment.md b/docs/guide/app-environment.md index 6e85e5d..b15293d 100644 --- a/docs/guide/app-environment.md +++ b/docs/guide/app-environment.md @@ -3,7 +3,7 @@ ## VPN detection ```typescript -import { isVPNDetected } from '@think-grid-labs/react-native-shield'; +import { isVPNDetected } from '@thinkgrid/react-native-shield'; if (isVPNDetected()) { // Traffic is routed through a VPN or proxy interface @@ -19,7 +19,7 @@ if (isVPNDetected()) { Auto-clear the clipboard whenever the app goes to the background: ```typescript -import { protectClipboard } from '@think-grid-labs/react-native-shield'; +import { protectClipboard } from '@thinkgrid/react-native-shield'; // Enable at startup protectClipboard(true); diff --git a/docs/guide/attestation.md b/docs/guide/attestation.md index 07919e0..92c2b4b 100644 --- a/docs/guide/attestation.md +++ b/docs/guide/attestation.md @@ -5,7 +5,7 @@ Request a **cryptographically signed integrity token** from Google or Apple that ## Usage ```typescript -import { requestIntegrityToken } from '@think-grid-labs/react-native-shield'; +import { requestIntegrityToken } from '@thinkgrid/react-native-shield'; const verifyDeviceWithServer = async () => { try { diff --git a/docs/guide/biometrics.md b/docs/guide/biometrics.md index 77f6535..b47efe4 100644 --- a/docs/guide/biometrics.md +++ b/docs/guide/biometrics.md @@ -5,7 +5,7 @@ Native biometric prompt (Face ID / Touch ID / Android Biometrics) with strength- ## Authenticate the user ```typescript -import { authenticateWithBiometrics } from '@think-grid-labs/react-native-shield'; +import { authenticateWithBiometrics } from '@thinkgrid/react-native-shield'; const loginWithBiometrics = async () => { const success = await authenticateWithBiometrics('Authenticate to continue'); @@ -22,7 +22,7 @@ const loginWithBiometrics = async () => { Different sensors have very different security properties. Face Unlock on Android is classified as "weak" (2D camera, spoofable with a photo). Face ID and fingerprint readers are "strong" (secure enclave, spoof-resistant hardware). ```typescript -import { getBiometricStrength } from '@think-grid-labs/react-native-shield'; +import { getBiometricStrength } from '@thinkgrid/react-native-shield'; const enforceStrongBiometrics = async () => { const strength = await getBiometricStrength(); diff --git a/docs/guide/device-integrity.md b/docs/guide/device-integrity.md index 13750e8..c6067bb 100644 --- a/docs/guide/device-integrity.md +++ b/docs/guide/device-integrity.md @@ -13,7 +13,7 @@ import { isHooked, verifySignature, getRootReasons, -} from '@think-grid-labs/react-native-shield'; +} from '@thinkgrid/react-native-shield'; const checkIntegrity = () => { if (isRooted()) { diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index fed4a92..1a6d614 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -11,11 +11,11 @@ ## Installation ```sh -npm install @think-grid-labs/react-native-shield +npm install @thinkgrid/react-native-shield # or -yarn add @think-grid-labs/react-native-shield +yarn add @thinkgrid/react-native-shield # or -pnpm add @think-grid-labs/react-native-shield +pnpm add @thinkgrid/react-native-shield ``` ### iOS Setup @@ -54,7 +54,7 @@ import { getAllSecureKeys, clearAllSecureStorage, requestIntegrityToken, -} from '@think-grid-labs/react-native-shield'; +} from '@thinkgrid/react-native-shield'; ``` ## Recommended startup check @@ -62,7 +62,7 @@ import { Run security checks early — before rendering any sensitive UI or making authenticated network requests: ```typescript -import { isRooted, isEmulator, isHooked, isDebuggerAttached } from '@think-grid-labs/react-native-shield'; +import { isRooted, isEmulator, isHooked, isDebuggerAttached } from '@thinkgrid/react-native-shield'; const runSecurityGate = () => { if (isRooted() || isEmulator() || isHooked() || isDebuggerAttached()) { diff --git a/docs/guide/secure-storage.md b/docs/guide/secure-storage.md index 6cafcc7..77a0027 100644 --- a/docs/guide/secure-storage.md +++ b/docs/guide/secure-storage.md @@ -9,7 +9,7 @@ import { setSecureString, getSecureString, removeSecureString, -} from '@think-grid-labs/react-native-shield'; +} from '@thinkgrid/react-native-shield'; // Store await setSecureString('access_token', 'eyJhbGci...'); @@ -24,7 +24,7 @@ await removeSecureString('access_token'); ## Enumerate keys ```typescript -import { getAllSecureKeys } from '@think-grid-labs/react-native-shield'; +import { getAllSecureKeys } from '@thinkgrid/react-native-shield'; const keys = await getAllSecureKeys(); // ['access_token', 'refresh_token', 'user_id'] @@ -35,7 +35,7 @@ Useful for migration scripts, key rotation, or auditing storage state before a r ## Bulk wipe ```typescript -import { clearAllSecureStorage } from '@think-grid-labs/react-native-shield'; +import { clearAllSecureStorage } from '@thinkgrid/react-native-shield'; const handleLogout = async () => { await clearAllSecureStorage(); diff --git a/docs/guide/ssl-pinning.md b/docs/guide/ssl-pinning.md index d6b0301..988c8e1 100644 --- a/docs/guide/ssl-pinning.md +++ b/docs/guide/ssl-pinning.md @@ -7,7 +7,7 @@ Prevent Man-in-the-Middle (MitM) attacks by verifying your server's certificate Call `addSSLPinning` **early in your app lifecycle** — before any network requests are made. ```typescript -import { addSSLPinning } from '@think-grid-labs/react-native-shield'; +import { addSSLPinning } from '@thinkgrid/react-native-shield'; useEffect(() => { const configurePinning = async () => { @@ -39,7 +39,7 @@ openssl s_client -servername api.yourdomain.com -connect api.yourdomain.com:443 ## Rotating pins ```typescript -import { updateSSLPins } from '@think-grid-labs/react-native-shield'; +import { updateSSLPins } from '@thinkgrid/react-native-shield'; // Android: takes effect immediately at runtime // iOS: throws SSL_PIN_UPDATE_UNSUPPORTED — new pins apply after next app launch diff --git a/docs/guide/ui-privacy.md b/docs/guide/ui-privacy.md index 6236cb6..393b784 100644 --- a/docs/guide/ui-privacy.md +++ b/docs/guide/ui-privacy.md @@ -5,7 +5,7 @@ Prevent sensitive UI from being captured in screenshots, screen recordings, or t ## Usage ```typescript -import { preventScreenshot } from '@think-grid-labs/react-native-shield'; +import { preventScreenshot } from '@thinkgrid/react-native-shield'; // Enable — call when entering a sensitive screen await preventScreenshot(true); diff --git a/docs/index.md b/docs/index.md index e1e3e7d..03c1017 100644 --- a/docs/index.md +++ b/docs/index.md @@ -14,7 +14,7 @@ hero: link: /api/device-integrity - theme: alt text: View on GitHub - link: https://github.com/ThinkGrid-Labs/react-native-shield + link: https://github.com/thinkgrid-labs/react-native-shield features: - title: Device Integrity & Anti-Tampering diff --git a/docs/roadmap.md b/docs/roadmap.md index 72eaa4b..25ad19e 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -78,4 +78,4 @@ Lock the public API surface and introduce a configuration object. --- -Have a feature request or want to contribute? Open an issue at [github.com/ThinkGrid-Labs/react-native-shield](https://github.com/ThinkGrid-Labs/react-native-shield/issues). +Have a feature request or want to contribute? Open an issue at [github.com/thinkgrid-labs/react-native-shield](https://github.com/thinkgrid-labs/react-native-shield/issues). diff --git a/example/src/App.tsx b/example/src/App.tsx index cf33793..0297bfb 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -26,7 +26,7 @@ import { getAllSecureKeys, clearAllSecureStorage, requestIntegrityToken, -} from '@think-grid-labs/react-native-shield'; +} from '@thinkgrid/react-native-shield'; type ResultMap = Record; diff --git a/package.json b/package.json index 6f2e98d..0d908d2 100644 --- a/package.json +++ b/package.json @@ -56,14 +56,14 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/ThinkGrid-Labs/react-native-shield.git" + "url": "git+https://github.com/thinkgrid-labs/react-native-shield.git" }, "author": "AkosiDencio ", "license": "MIT", "bugs": { - "url": "https://github.com/ThinkGrid-Labs/react-native-shield/issues" + "url": "https://github.com/thinkgrid-labs/react-native-shield/issues" }, - "homepage": "https://github.com/ThinkGrid-Labs/react-native-shield#readme", + "homepage": "https://github.com/thinkgrid-labs/react-native-shield#readme", "publishConfig": { "registry": "https://registry.npmjs.org/", "access": "public" diff --git a/tsconfig.json b/tsconfig.json index 30aafac..18838f0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "rootDir": ".", "paths": { "react-native-shield": ["./src/index"], - "@think-grid-labs/react-native-shield": ["./src/index"] + "@thinkgrid/react-native-shield": ["./src/index"] }, "allowUnreachableCode": false, "allowUnusedLabels": false,