{"id":15561266,"url":"https://github.com/thang2162/react-native-biometric-login","last_synced_at":"2026-03-06T12:04:11.468Z","repository":{"id":55481265,"uuid":"523090796","full_name":"thang2162/react-native-biometric-login","owner":"thang2162","description":"A React Native module that enables biometric authentication and securely stores user credentials using native APIs. This library provides a comprehensive solution for implementing biometric login functionality in React Native applications with support for both iOS and Android platforms.","archived":false,"fork":false,"pushed_at":"2025-08-19T16:50:58.000Z","size":3058,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T15:52:19.446Z","etag":null,"topics":["android","auth","authentication","credential-storage","encryptedsharedpreferences","face","fingerprint","fingerprint-authentication","fingerprint-sensor","ios","keychain","kotlin","react","react-native","swift","touch","touchid"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thang2162.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-09T19:56:29.000Z","updated_at":"2025-08-19T16:45:12.000Z","dependencies_parsed_at":"2024-10-02T16:07:01.778Z","dependency_job_id":"6347b82c-4ed0-46aa-ae6d-8a3a80f210ca","html_url":"https://github.com/thang2162/react-native-biometric-login","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/thang2162/react-native-biometric-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thang2162%2Freact-native-biometric-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thang2162%2Freact-native-biometric-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thang2162%2Freact-native-biometric-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thang2162%2Freact-native-biometric-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thang2162","download_url":"https://codeload.github.com/thang2162/react-native-biometric-login/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thang2162%2Freact-native-biometric-login/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","auth","authentication","credential-storage","encryptedsharedpreferences","face","fingerprint","fingerprint-authentication","fingerprint-sensor","ios","keychain","kotlin","react","react-native","swift","touch","touchid"],"created_at":"2024-10-02T16:06:52.681Z","updated_at":"2026-03-06T12:04:06.455Z","avatar_url":"https://github.com/thang2162.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-biometric-login\n\nA React-Native module to enable biometric login and securely store a user's credentials using native apis. The user's credentials are encrypted and stored using Keychain on iOS and Encrypted Shared Preferences on Android.\n\n## Installation\n\n```sh\nnpm install react-native-biometric-login --save\n\ncd ios \u0026\u0026 pod install \u0026\u0026 cd ..\n```\n\nor\n\n```sh\nyarn add react-native-biometric-login\n\ncd ios \u0026\u0026 pod install \u0026\u0026 cd ..\n```\n\n## Usage\n\n```js\nimport {\n  BiometricIsAvailable,\n  BasicBiometricAuth,\n  LoginBiometricAuth,\n  SetUser,\n  UpdateUser,\n  GetUser,\n  DeleteUser,\n} from 'react-native-biometric-login';\n\n// ...\n\nconst result = await BiometricIsAvailable();\n```\n\n## API\n\n1. BiometricIsAvailable() - Checks if a biometric authentication method is available on the device.\n   Returns: Promise that resolves with true or false\n\n2. BasicBiometricAuth(title: string, description: string) - Opens a basic biometric login prompt.\n   Returns: Promise that resolves with true if success or rejects with message if fail.\n\n3. LoginBiometricAuth(title: string, description: string) - Opens a biometric login prompt that returns stored user credentials.\n   Returns: Promise that resolves with object {success: true, username: \"username\", password: \"password\"} if success or rejects with message if fail.\n\n4. SetUser(username: string, password: string) - Save the user's credentials.\n   Returns: Promise that resolves with object {success: true, message: response_text} if success or rejects with message if fail.\n\n5. UpdateUser(username: string, password: string) - Update the user's credentials.\n   Returns: Promise that resolves with object {success: true, message: response_text} if success or rejects with message if fail.\n\n6. GetUser() - Gets the user's credentials.\n   Returns: Promise that resolves with object {success: true, username: \"username\", password: \"password\"} if success or rejects with message if fail.\n\n7. DeleteUser() - Deletes the user's credentials.\n   Returns: Promise that resolves with object {success: true, message: response_text} if success or rejects with message if fail.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthang2162%2Freact-native-biometric-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthang2162%2Freact-native-biometric-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthang2162%2Freact-native-biometric-login/lists"}