{"_id":"@cashfreepayments/react-native-digilocker","_rev":"6-1d92d0b8d0621af42fd8112f8286a161","name":"@cashfreepayments/react-native-digilocker","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@cashfreepayments/react-native-digilocker","version":"0.1.0","keywords":["react-native","ios","android","digilocker","verification","webview","cashfree","document-verification","digital-identity","identity-verification","kyc","ekyc","digital-documents","government-documents","aadhaar","pan-card","driving-license","passport","voter-id","document-authentication","mobile-sdk","react-native-library","authentication","fintech","banking","compliance","india","digital-india","paperless","secure-verification","biometric","otp-verification","typescript","expo","metro"],"author":{"name":"developers@cashfree.com"},"license":"MIT","_id":"@cashfreepayments/react-native-digilocker@0.1.0","maintainers":[{"name":"cashfree-payments","email":"raj@cashfree.com"},{"name":"kishan.cashfree","email":"kishan.maurya@cashfree.com"},{"name":"nikhilkushwah18","email":"nikhil.kushwah@cashfree.com"}],"homepage":"https://github.com/cashfree/react-native-digilocker#readme","bugs":{"url":"https://github.com/cashfree/react-native-digilocker/issues"},"dist":{"shasum":"6e92bc67783c9c3b773cf4a7a8bbee8824614165","tarball":"https://registry.npmjs.org/@cashfreepayments/react-native-digilocker/-/react-native-digilocker-0.1.0.tgz","fileCount":15,"integrity":"sha512-0DwUiYrnvQdEbI2a1MAT0ePVkYz9zi163de4e0A8zueiBKy4gC2WD/kdQAKAMX0XK64tn5pJhaA4Dx6g8vPCHg==","signatures":[{"sig":"MEYCIQDm1SOzL/SpH/8dPu+4GjcFrWB7gZcAE/vTpZ1H4nzJzwIhAPVgsa79D7qCvolof6eFAgxO2zWjkP0colCsGoitWv+7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29877},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"types":"./lib/typescript/src/index.d.ts","source":"./src/index.tsx","default":"./lib/module/index.js"},"./package.json":"./package.json"},"gitHead":"7dfd1a8ddaeeab2bcaac5ae4cae11124c3df1a05","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli lib","example":"yarn workspace react-native-cfdigilocker-example","prepare":"bob build","release":"release-it --only-version","typecheck":"tsc"},"_npmUser":{"name":"cashfree-payments","email":"raj@cashfree.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"repository":{"url":"git+https://github.com/cashfree/react-native-digilocker.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.3.0","description":"A React Native SDK for integrating DigiLocker verification flows into mobile applications","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"19.0.0","eslint":"^9.22.0","del-cli":"^5.1.0","prettier":"^3.0.3","@eslint/js":"^9.22.0","commitlint":"^19.6.1","release-it":"^17.10.0","typescript":"^5.8.3","@types/jest":"^29.5.5","@types/react":"^19.0.12","react-native":"0.79.5","@eslint/compat":"^1.2.7","@eslint/eslintrc":"^3.3.0","react-native-webview":"^13.15.0","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","react-native-builder-bob":"^0.40.13","@react-native/babel-preset":"0.78.2","@react-native/eslint-config":"^0.78.0","@commitlint/config-conventional":"^19.6.0","@release-it/conventional-changelog":"^9.0.2"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-digilocker_0.1.0_1753770498987_0.46089420465529773","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"create-react-native-library":{"type":"library","version":"0.52.0","languages":"js"}},"0.1.1":{"name":"@cashfreepayments/react-native-digilocker","version":"0.1.1","keywords":["react-native","ios","android","digilocker","verification","webview","cashfree","document-verification","digital-identity","identity-verification","kyc","ekyc","digital-documents","government-documents","aadhaar","pan-card","driving-license","passport","voter-id","document-authentication","mobile-sdk","react-native-library","authentication","fintech","banking","compliance","india","digital-india","paperless","secure-verification","biometric","otp-verification","typescript","expo","metro"],"author":{"name":"developers@cashfree.com"},"license":"MIT","_id":"@cashfreepayments/react-native-digilocker@0.1.1","maintainers":[{"name":"cashfree-payments","email":"raj@cashfree.com"},{"name":"kishan.cashfree","email":"kishan.maurya@cashfree.com"},{"name":"nikhilkushwah18","email":"nikhil.kushwah@cashfree.com"}],"homepage":"https://github.com/cashfree/react-native-digilocker#readme","bugs":{"url":"https://github.com/cashfree/react-native-digilocker/issues"},"dist":{"shasum":"1404237c13d9586e0c08b5673ec1c4ca7c2eb3b8","tarball":"https://registry.npmjs.org/@cashfreepayments/react-native-digilocker/-/react-native-digilocker-0.1.1.tgz","fileCount":15,"integrity":"sha512-XFtdRnaszNWNdEIyAG0iCWT+fi5gLrXlgwldYsGYn/d2UuyjkqjP6ZCaOkRkSYT/9oYYs4J9vvuuqvPYJBkb/w==","signatures":[{"sig":"MEYCIQD6TPhKf3jvndtaLaYv8Jt26aoYtylUiwP7HvQdV3PhoAIhAIu3gtxQIwF8owfn3q+I9mebb4A7YjIv3Wet9YH7zfET","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37797},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"types":"./lib/typescript/src/index.d.ts","source":"./src/index.tsx","default":"./lib/module/index.js"},"./package.json":"./package.json"},"gitHead":"4c6bf5fcdad359c647ba716d8b1f544640fdabef","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli lib","example":"yarn workspace react-native-cfdigilocker-example","prepare":"bob build","release":"release-it --only-version","typecheck":"tsc"},"_npmUser":{"name":"cashfree-payments","email":"raj@cashfree.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"repository":{"url":"git+https://github.com/cashfree/react-native-digilocker.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.3.0","description":"A React Native SDK for integrating DigiLocker verification flows into mobile applications","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"19.0.0","eslint":"^9.22.0","del-cli":"^5.1.0","prettier":"^3.0.3","@eslint/js":"^9.22.0","commitlint":"^19.6.1","release-it":"^17.10.0","typescript":"^5.8.3","@types/jest":"^29.5.5","@types/react":"^19.0.12","react-native":"0.79.5","@eslint/compat":"^1.2.7","@eslint/eslintrc":"^3.3.0","react-native-webview":"^13.15.0","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","react-native-builder-bob":"^0.40.13","@react-native/babel-preset":"0.78.2","@react-native/eslint-config":"^0.78.0","@commitlint/config-conventional":"^19.6.0","@release-it/conventional-changelog":"^9.0.2"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-digilocker_0.1.1_1753786463429_0.283552177316718","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"create-react-native-library":{"type":"library","version":"0.52.0","languages":"js"}},"0.1.2":{"name":"@cashfreepayments/react-native-digilocker","version":"0.1.2","keywords":["react-native","ios","android","digilocker","verification","webview","cashfree","document-verification","digital-identity","identity-verification","kyc","ekyc","digital-documents","government-documents","aadhaar","pan-card","driving-license","passport","voter-id","document-authentication","mobile-sdk","react-native-library","authentication","fintech","banking","compliance","india","digital-india","paperless","secure-verification","biometric","otp-verification","typescript","expo","metro"],"author":{"name":"developers@cashfree.com"},"license":"MIT","_id":"@cashfreepayments/react-native-digilocker@0.1.2","maintainers":[{"name":"cashfree-payments","email":"raj@cashfree.com"},{"name":"kishan.cashfree","email":"kishan.maurya@cashfree.com"},{"name":"nikhilkushwah18","email":"nikhil.kushwah@cashfree.com"}],"homepage":"https://github.com/cashfree/react-native-digilocker#readme","bugs":{"url":"https://github.com/cashfree/react-native-digilocker/issues"},"dist":{"shasum":"2661c55277dd0a9681726d1614577a150b64de75","tarball":"https://registry.npmjs.org/@cashfreepayments/react-native-digilocker/-/react-native-digilocker-0.1.2.tgz","fileCount":15,"integrity":"sha512-vvzajUsbdHnJOUlaFiJRyouvJHt5l4nWw4mIc+iKlD7h0NngIA21CcnmfqMsg3/vFIIoznF5A/c7R6w1LezrsA==","signatures":[{"sig":"MEUCIE8ocuwyF4TS6x/o2yPwHgZLPrsjeO7+e2MtkMzb/pZuAiEAuYzx5R9kV5OtSrAHLlmRrZCvEK71TpFHowXgGOKNZfo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37910},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"types":"./lib/typescript/src/index.d.ts","source":"./src/index.tsx","default":"./lib/module/index.js"},"./package.json":"./package.json"},"gitHead":"4c6bf5fcdad359c647ba716d8b1f544640fdabef","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli lib","example":"yarn workspace react-native-cfdigilocker-example","prepare":"bob build","release":"release-it --only-version","typecheck":"tsc"},"_npmUser":{"name":"cashfree-payments","email":"raj@cashfree.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"repository":{"url":"git+https://github.com/cashfree/react-native-digilocker.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.3.0","description":"A React Native SDK for integrating DigiLocker verification flows into mobile applications","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"19.0.0","eslint":"^9.22.0","del-cli":"^5.1.0","prettier":"^3.0.3","@eslint/js":"^9.22.0","commitlint":"^19.6.1","release-it":"^17.10.0","typescript":"^5.8.3","@types/jest":"^29.5.5","@types/react":"^19.0.12","react-native":"0.79.5","@eslint/compat":"^1.2.7","@eslint/eslintrc":"^3.3.0","react-native-webview":"^13.15.0","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","react-native-builder-bob":"^0.40.13","@react-native/babel-preset":"0.78.2","@react-native/eslint-config":"^0.78.0","@commitlint/config-conventional":"^19.6.0","@release-it/conventional-changelog":"^9.0.2"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-digilocker_0.1.2_1753787183477_0.497769957736915","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"create-react-native-library":{"type":"library","version":"0.52.0","languages":"js"}},"0.1.3":{"name":"@cashfreepayments/react-native-digilocker","version":"0.1.3","keywords":["react-native","ios","android","digilocker","verification","webview","cashfree","document-verification","digital-identity","identity-verification","kyc","ekyc","digital-documents","government-documents","aadhaar","pan-card","driving-license","passport","voter-id","document-authentication","mobile-sdk","react-native-library","authentication","fintech","banking","compliance","india","digital-india","paperless","secure-verification","biometric","otp-verification","typescript","expo","metro"],"author":{"name":"developers@cashfree.com"},"license":"MIT","_id":"@cashfreepayments/react-native-digilocker@0.1.3","maintainers":[{"name":"cashfree-payments","email":"raj@cashfree.com"},{"name":"kishan.cashfree","email":"kishan.maurya@cashfree.com"},{"name":"nikhilkushwah18","email":"nikhil.kushwah@cashfree.com"}],"homepage":"https://github.com/cashfree/react-native-digilocker#readme","bugs":{"url":"https://github.com/cashfree/react-native-digilocker/issues"},"dist":{"shasum":"0164d30279b9d537ce3fe0a7db7bc09f456ae1ef","tarball":"https://registry.npmjs.org/@cashfreepayments/react-native-digilocker/-/react-native-digilocker-0.1.3.tgz","fileCount":15,"integrity":"sha512-f1lu89+QEc9EmASy8P7WOI5xmNJk910bGYXmN9EKw52FcsUTTm24ptrGMtUeZRIphwKAbtAyY9hBReci/28Jcw==","signatures":[{"sig":"MEUCIE70UI7yhGHEt7LTDzseoTlwBXgGzU3/Ot4A9FBxHbS+AiEA0hgNSfUTcXFqh/hjFegPX7eMrKa7hKm96YQ1XAx/buA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37820},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"types":"./lib/typescript/src/index.d.ts","source":"./src/index.tsx","default":"./lib/module/index.js"},"./package.json":"./package.json"},"gitHead":"4c6bf5fcdad359c647ba716d8b1f544640fdabef","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli lib","example":"yarn workspace react-native-cfdigilocker-example","prepare":"bob build","release":"release-it --only-version","typecheck":"tsc"},"_npmUser":{"name":"cashfree-payments","email":"raj@cashfree.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"repository":{"url":"git+https://github.com/cashfree/react-native-digilocker.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.3.0","description":"A React Native SDK for integrating DigiLocker verification flows into mobile applications","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"19.0.0","eslint":"^9.22.0","del-cli":"^5.1.0","prettier":"^3.0.3","@eslint/js":"^9.22.0","commitlint":"^19.6.1","release-it":"^17.10.0","typescript":"^5.8.3","@types/jest":"^29.5.5","@types/react":"^19.0.12","react-native":"0.79.5","@eslint/compat":"^1.2.7","@eslint/eslintrc":"^3.3.0","react-native-webview":"^13.15.0","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","react-native-builder-bob":"^0.40.13","@react-native/babel-preset":"0.78.2","@react-native/eslint-config":"^0.78.0","@commitlint/config-conventional":"^19.6.0","@release-it/conventional-changelog":"^9.0.2"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-digilocker_0.1.3_1753788651414_0.682840685980395","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"create-react-native-library":{"type":"library","version":"0.52.0","languages":"js"}},"0.1.4":{"name":"@cashfreepayments/react-native-digilocker","version":"0.1.4","keywords":["react-native","ios","android","digilocker","verification","webview","cashfree","document-verification","digital-identity","identity-verification","kyc","ekyc","digital-documents","government-documents","aadhaar","pan-card","driving-license","passport","voter-id","document-authentication","mobile-sdk","react-native-library","authentication","fintech","banking","compliance","india","digital-india","paperless","secure-verification","biometric","otp-verification","typescript","expo","metro"],"author":{"name":"developers@cashfree.com"},"license":"MIT","_id":"@cashfreepayments/react-native-digilocker@0.1.4","maintainers":[{"name":"cashfree-payments","email":"raj@cashfree.com"},{"name":"kishan.cashfree","email":"kishan.maurya@cashfree.com"},{"name":"nikhilkushwah18","email":"nikhil.kushwah@cashfree.com"}],"homepage":"https://github.com/cashfree/react-native-digilocker#readme","bugs":{"url":"https://github.com/cashfree/react-native-digilocker/issues"},"dist":{"shasum":"ea923b44ea73760859caad1186f2c1d344fc3b3d","tarball":"https://registry.npmjs.org/@cashfreepayments/react-native-digilocker/-/react-native-digilocker-0.1.4.tgz","fileCount":15,"integrity":"sha512-E/Rzi65LhrPjA9DrW3+c5DXA7nCx7mhhEGXc4GMBtYo2EqWavXAtAse8l1tqhG1241A5AtRWOfIk13VCcEJXiw==","signatures":[{"sig":"MEQCIHBCpPZx+DbS9vQRVar1+LZ5i939KGbnTFIMlOMhMfglAiBIgpsMPUekq2wOFYYfb7EkMLx8haC5yTZLH7DIqZ1FKw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39520},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"types":"./lib/typescript/src/index.d.ts","source":"./src/index.tsx","default":"./lib/module/index.js"},"./package.json":"./package.json"},"gitHead":"1ad21253f4f7a7e8b9154c77c1970bf968d800dc","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli lib","example":"yarn workspace react-native-cfdigilocker-example","prepare":"bob build","release":"release-it --only-version","typecheck":"tsc"},"_npmUser":{"name":"cashfree-payments","email":"raj@cashfree.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"repository":{"url":"git+https://github.com/cashfree/react-native-digilocker.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.3.0","description":"A React Native SDK for integrating DigiLocker verification flows into mobile applications","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"19.0.0","eslint":"^9.22.0","del-cli":"^5.1.0","prettier":"^3.0.3","@eslint/js":"^9.22.0","commitlint":"^19.6.1","release-it":"^17.10.0","typescript":"^5.8.3","@types/jest":"^29.5.5","@types/react":"^19.0.12","react-native":"0.79.5","@eslint/compat":"^1.2.7","@eslint/eslintrc":"^3.3.0","react-native-webview":"^13.15.0","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","react-native-builder-bob":"^0.40.13","@react-native/babel-preset":"0.78.2","@react-native/eslint-config":"^0.78.0","@commitlint/config-conventional":"^19.6.0","@release-it/conventional-changelog":"^9.0.2"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-digilocker_0.1.4_1756313748449_0.05603567727627223","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"create-react-native-library":{"type":"library","version":"0.52.0","languages":"js"}}},"time":{"created":"2025-07-29T06:28:18.895Z","modified":"2026-01-08T12:35:59.830Z","0.1.0":"2025-07-29T06:28:19.142Z","0.1.1":"2025-07-29T10:54:23.634Z","0.1.2":"2025-07-29T11:06:23.648Z","0.1.3":"2025-07-29T11:30:51.579Z","0.1.4":"2025-08-27T16:55:48.635Z"},"bugs":{"url":"https://github.com/cashfree/react-native-digilocker/issues"},"author":{"name":"developers@cashfree.com"},"license":"MIT","homepage":"https://github.com/cashfree/react-native-digilocker#readme","keywords":["react-native","ios","android","digilocker","verification","webview","cashfree","document-verification","digital-identity","identity-verification","kyc","ekyc","digital-documents","government-documents","aadhaar","pan-card","driving-license","passport","voter-id","document-authentication","mobile-sdk","react-native-library","authentication","fintech","banking","compliance","india","digital-india","paperless","secure-verification","biometric","otp-verification","typescript","expo","metro"],"repository":{"url":"git+https://github.com/cashfree/react-native-digilocker.git","type":"git"},"description":"A React Native SDK for integrating DigiLocker verification flows into mobile applications","maintainers":[{"email":"raj@cashfree.com","name":"cashfree-payments"},{"email":"kishan.maurya@cashfree.com","name":"kishan.cashfree"},{"email":"vibhor.jain@cashfree.com","name":"vibhorohbiv"}],"readme":"# React Native DigiLocker Verification\n\nA React Native SDK for integrating DigiLocker verification flows into your mobile applications. This SDK provides a simple WebView-based solution for handling DigiLocker verification workflows with customizable callbacks and redirect handling.\n\n## Features\n\n- ✅ Easy integration with React Native apps\n- ✅ WebView-based DigiLocker verification flow\n- ✅ Customizable redirect URL handling\n- ✅ TypeScript support\n- ✅ React hooks-based API\n- ✅ Loading states and error handling\n- ✅ Automatic modal management\n- ✅ Provider-based architecture for clean integration\n\n## Installation\n\n```bash\nnpm install @cashfreepayments/react-native-digilocker react-native-webview\n```\n\nor\n\n```bash\nyarn add @cashfreepayments/react-native-digilocker react-native-webview\n```\n\n### iOS Setup\n\nFor iOS, you need to install pods:\n\n```bash\ncd ios && pod install\n```\n\n### Android Setup\n\nNo additional setup required for Android.\n\n## Running the Example App\n\nThe repository includes a complete example app that demonstrates how to use the DigiLocker SDK. To run the example:\n\n### Prerequisites\n\nMake sure you have the following installed:\n- Node.js (>= 16)\n- React Native development environment set up\n- iOS Simulator (for iOS) or Android emulator/device (for Android)\n- Yarn package manager\n\n### Steps to Run\n\n1. **Clone and install dependencies**:\n   ```bash\n   git clone https://github.com/cashfree/react-native-digilocker.git\n   cd react-native-digilocker\n   yarn install\n   ```\n\n2. **Navigate to the example directory**:\n   ```bash\n   cd example\n   ```\n\n3. **For iOS**:\n   ```bash\n   # Install iOS dependencies\n   cd ios && pod install && cd ..\n   \n   # Start Metro bundler\n   yarn start\n   \n   # In a new terminal, run iOS app\n   yarn ios\n   ```\n\n4. **For Android**:\n   ```bash\n   # Start Metro bundler\n   yarn start\n   \n   # In a new terminal, run Android app\n   yarn android\n   ```\n\n### Example App Features\n\nThe example app demonstrates:\n- Basic DigiLocker verification flow with custom redirect URL\n- Verification flow with default redirect URL\n- User flow configuration (signin/signup)\n- Success, error, and cancel callback handling\n- Custom styling and UI integration\n- Loading states and user feedback\n\n### Customizing the Example\n\nYou can modify the example app by:\n1. Updating the DigiLocker URL in `example/src/App.tsx`\n2. Changing the `userFlow` parameter ('signin' or 'signup')\n3. Customizing the UI and styling\n4. Adding additional callback handling logic\n\n## Usage\n\n### Quick Start\n\n1. **Wrap your app with DigiLockerProvider**\n2. **Use the `verify` function to start verification**\n3. **That's it! The modal is managed automatically**\n\n```tsx\nimport React from 'react';\nimport { View, Button, Alert } from 'react-native';\nimport { useDigiLocker, DigiLockerProvider } from '@cashfreepayments/react-native-digilocker';\n\nfunction AppContent() {\n  const { verify } = useDigiLocker();\n\n  const handleVerify = () => {\n    verify(\n      'https://verification.cashfree.com/dgl?shortCode=z345md9dg1hg',\n      'https://verification.cashfree.com/dgl/status', // Optional redirect URL\n      {\n        userFlow: 'signin',\n        onSuccess: (data) => {\n          Alert.alert('Success', `Verification successful: ${JSON.stringify(data)}`);\n        },\n        onError: (error) => {\n          Alert.alert('Error', `Verification failed: ${error}`);\n        },\n        onCancel: () => {\n          Alert.alert('Cancelled', 'Verification was cancelled');\n        },\n      }\n    );\n  };\n\n  return (\n    <View style={{ flex: 1, justifyContent: 'center', padding: 20 }}>\n      <Button title=\"Verify with DigiLocker\" onPress={handleVerify} />\n    </View>\n  );\n}\n\nexport default function App() {\n  return (\n    <DigiLockerProvider>\n      <AppContent />\n    </DigiLockerProvider>\n  );\n}\n```\n\n### Advanced Usage\n\n```tsx\nimport React from 'react';\nimport { View, Button, Alert, StyleSheet } from 'react-native';\nimport { useDigiLocker, DigiLockerProvider } from '@cashfreepayments/react-native-digilocker';\n\nfunction VerificationScreen() {\n  const { verify } = useDigiLocker();\n\n  const handleCustomVerification = () => {\n    verify(\n      'https://verification.cashfree.com/dgl?shortCode=z345md9dg1hg',\n      'https://verification.cashfree.com/dgl/status', // Custom redirect URL\n      {\n        userFlow: 'signin',\n        onSuccess: (data) => {\n          // Handle successful verification\n          console.log('Verification data:', data);\n          Alert.alert('Success', 'Document verified successfully!');\n        },\n        onError: (error) => {\n          // Handle verification error\n          console.error('Verification error:', error);\n          Alert.alert('Error', `Verification failed: ${error}`);\n        },\n        onCancel: () => {\n          // Handle user cancellation\n          console.log('User cancelled verification');\n          Alert.alert('Cancelled', 'Verification was cancelled by user');\n        },\n      }\n    );\n  };\n\n  return (\n    <View style={styles.container}>\n      <Button \n        title=\"Start Verification\"\n        onPress={handleCustomVerification}\n      />\n    </View>\n  );\n}\n\nfunction App() {\n  return (\n    <DigiLockerProvider>\n      <VerificationScreen />\n    </DigiLockerProvider>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    padding: 20,\n  },\n});\n```\n\n## API Reference\n\n### DigiLockerProvider\n\nA context provider that manages the DigiLocker modal globally. **Must wrap your app or the components that use DigiLocker**.\n\n```tsx\nimport { DigiLockerProvider } from '@cashfreepayments/react-native-digilocker';\n\nfunction App() {\n  return (\n    <DigiLockerProvider>\n      {/* Your app content */}\n    </DigiLockerProvider>\n  );\n}\n```\n\n### useDigiLocker Hook\n\nThe main hook for DigiLocker integration. **Must be used inside DigiLockerProvider**.\n\n#### Returns\n\n- `verify(url, redirectUrl?, options?)` - Function to start verification\n\n#### Parameters\n\n```tsx\nverify(\n  url: string,                    // DigiLocker URL to load\n  redirectUrl?: string,           // Optional redirect URL (default: 'https://verification.cashfree.com/dgl/status')\n  options?: {\n    userFlow?: 'signin' | 'signup';      // Optional user flow type (restricted to 'signin' or 'signup')\n    onSuccess?: (data: any) => void;     // Success callback\n    onError?: (error: string) => void;   // Error callback\n    onCancel?: () => void;               // Cancel callback\n  }\n)\n```\n\n### Types\n\n```tsx\nexport interface DigiLockerConfig {\n  url: string;\n  redirectUrl?: string;\n  userFlow?: 'signin' | 'signup';  // Restricted to only 'signin' or 'signup'\n  onSuccess?: (data: any) => void;\n  onError?: (error: string) => void;\n  onCancel?: () => void;\n}\n\nexport interface DigiLockerResult {\n  success: boolean;\n  data?: any;\n  error?: string;\n}\n```\n\n## Integration Steps\n\n1. **Install the package and dependencies**\n2. **Wrap your app with DigiLockerProvider**\n3. **Use useDigiLocker hook in components that need verification**\n4. **Call verify() with your DigiLocker URL and callbacks**\n\n## Configuration\n\n### Default Redirect URL\n\nThe SDK uses `https://verification.cashfree.com/dgl/status` as the default redirect URL. When the WebView navigates to a URL containing this pattern, the verification is considered complete.\n\n### User Flow Configuration\n\nThe `userFlow` parameter accepts only two values:\n- **`'signin'`** - For existing user authentication flows\n- **`'signup'`** - For new user registration flows\n\n\n### Modal Behavior\n\nThe SDK automatically manages the modal:\n- Covers the full screen with slide animation\n- Shows loading indicator during page loads\n- Handles navigation state changes automatically\n- Closes on successful verification or user cancellation\n\n## Error Handling\n\nThe SDK handles various error scenarios:\n\n1. **Network Errors**: When the WebView fails to load the URL\n2. **Navigation Errors**: When there are issues with page navigation\n3. **User Cancellation**: When the user dismisses the modal\n4. **Provider Missing**: When useDigiLocker is used outside DigiLockerProvider\n\n```tsx\nconst { verify } = useDigiLocker();\n\nverify(url, redirectUrl, {\n  onError: (error) => {\n    switch (error) {\n      case 'Network Error':\n        // Handle network issues\n        break;\n      case 'User Cancelled':\n        // Handle user cancellation\n        break;\n      default:\n        // Handle other errors\n        break;\n    }\n  }\n});\n```\n\n## Best Practices\n\n1. **Always wrap with Provider**: Ensure `DigiLockerProvider` wraps components using `useDigiLocker`\n2. **Handle all callbacks**: Implement `onSuccess`, `onError`, and `onCancel` for better user experience\n3. **Use correct userFlow**: Only use `'signin'` or `'signup'` for the `userFlow` parameter\n4. **Test with real URLs**: Use actual DigiLocker URLs for testing\n5. **Error messaging**: Provide clear error messages to users\n6. **Network handling**: Consider offline scenarios and network timeouts\n\n## Troubleshooting\n\n### Common Issues\n\n1. **\"DigiLockerProvider not found\" warning**: Ensure `useDigiLocker` is used inside `DigiLockerProvider`\n2. **WebView not loading**: Ensure `react-native-webview` is properly installed and linked\n3. **iOS build issues**: Run `pod install` in the iOS directory\n4. **Android issues**: Ensure you have the latest version of react-native-webview\n\n### Debug Mode\n\nEnable debug mode in development:\n\n```tsx\n// Add console logs to track verification flow\nverify(url, redirectUrl, {\n  onSuccess: (data) => {\n    console.log('DigiLocker Success:', data);\n    // Your success handling\n  },\n  onError: (error) => {\n    console.log('DigiLocker Error:', error);\n    // Your error handling\n  }\n});\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n## Support\n\nFor support and questions, please create an issue on the [GitHub repository](https://github.com/cashfree/react-native-digilocker).\n","readmeFilename":"README.md"}