{"id":4724,"url":"https://github.com/morcmarc/react-native-cognito","last_synced_at":"2026-01-14T12:43:50.707Z","repository":{"id":57336111,"uuid":"46621258","full_name":"morcmarc/react-native-cognito","owner":"morcmarc","description":"AWS Cognito integration module for React Native","archived":true,"fork":false,"pushed_at":"2017-07-01T12:30:09.000Z","size":42,"stargazers_count":62,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-31T23:52:06.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/morcmarc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-21T15:37:13.000Z","updated_at":"2025-03-24T17:13:18.000Z","dependencies_parsed_at":"2022-09-11T02:12:07.245Z","dependency_job_id":null,"html_url":"https://github.com/morcmarc/react-native-cognito","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/morcmarc/react-native-cognito","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morcmarc%2Freact-native-cognito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morcmarc%2Freact-native-cognito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morcmarc%2Freact-native-cognito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morcmarc%2Freact-native-cognito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morcmarc","download_url":"https://codeload.github.com/morcmarc/react-native-cognito/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morcmarc%2Freact-native-cognito/sbom","scorecard":{"id":659850,"data":{"date":"2025-08-11","repo":{"name":"github.com/morcmarc/react-native-cognito","commit":"33219a4d9fb0d4ad7212a38a891ac8c9d5e737e4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 1/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T15:46:30.245Z","repository_id":57336111,"created_at":"2025-08-21T15:46:30.245Z","updated_at":"2025-08-21T15:46:30.245Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-01-05T20:17:21.396Z","updated_at":"2026-01-14T12:43:50.686Z","avatar_url":"https://github.com/morcmarc.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Backend"],"readme":"# React Native : AWS Cognito Module\n\n**Deprecated! This library is not actively developed. Check out [react-native-aws-cognito-js](http://github.com/AirLabsTeam/react-native-aws-cognito-js) instead.**\n\n`react-native-cognito` provides a [React Native](http://facebook.github.io/react-native/) module for integrating with [AWS Cognito](https://aws.amazon.com/cognito/).\n\n**Features currently supported:**\n\n* [x] dataset:synchronize\n\n**Roadmap:**\n\n* [ ] dataset:subscribe\n* [ ] dataset:unsubscrib\n* [ ] proper callbacks + events\n* [ ] promises\n* [ ] twitter auth support\n* [ ] google auth support\n* [ ] custom login support\n\n## Supported Identity Providers\n\nCurrently the following identity providers are supported:\n\n- Facebook\n\nIn development:\n\n- Twitter\n- Google\n\n## Requirements\n\n`react-native-cognito` does not handle authentication with identity providers such as Facebook. You have to use [react-native-facebook-login](https://github.com/magus/react-native-facebook-login) or similar to get a valid access token to use with `react-native-cognito`.\n\n### AWS Mobile SDK\n\nMake sure you install the AWS Mobile SDK. [https://aws.amazon.com/mobile/sdk/](http://docs.aws.amazon.com/mobile/sdkforios/developerguide/setup.html).\n\n## Example Usage\n\n```es6\nimport React from 'react-native';\nimport Cognito from 'react-native-cognito';\nimport LoginStore from '../stores/LoginStore';\n\nlet region = 'eu-west-1';\nlet identityPoolId = 'your_cognito_identity_pool_id';\n\nclass Demo extends React.Component {\n    constructor() {\n        // Load login credentials from flux store.\n        this.state = LoginStore.getState();\n\n        // Provide credentials to Cognito.\n        Cognito.initCredentialsProvider(\n            identityPoolId,\n            this.state.credentials.token, // \u003c- Facebook access token\n            region);\n\n        // Sync data\n        Cognito.syncData('testDataset', 'hello', 'world', (err) =\u003e {\n            // callback\n            // handle errors etc\n        });\n    }\n}\n```\n\n## Install -- iOS\n\nFirst, install via npm:\n\n```\n$ npm install --save react-native-cognito\n```\n\nAdd RCTCognito.xcodeproj to Libraries and add libRCTCognito.a to Link Binary With Libraries under Build Phases. More info and screenshots about how to do this is available in the [React Native documentation](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#content).\n\n**Next, select RCTCognito.xcodeproj and add your AWS SDK path to Framework Search Paths under Build Settings.**\n\n## Install -- Android\n\n*Disclaimer: experimental i.e., don't use*\n\n### Step 1 - Gradle Settings\n\nEdit `android/settings.gradle` and add the following lines:\n\n```\n...\ninclude ':react-native-cognito'\nproject(':react-native-cognito').projectDir = new File(rootProject.projectDir, '../node-modules/react-native-cognito/android')\n```\n\n### Step 2 - Gradle Build\n\nEdit `android/app/build.gradle`:\n\n```\n...\ndependencies {\n    ...\n    compile project(':react-native-cognito')\n}\n```\n\n### Step 3 - Register Package\n\nEdit `android/app/src/main/java/com/myApp/MainActivity.java`.\n\n```java\n// Import package\nimport com.morcmarc.rctcognito.ReactCognitoPackage;\n\n...\n\npublic class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {\n    ...\n\n    // declare package\n    private ReactCognitoPackage mReactCognitoPackage;\n\n    ...\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        mReactRootView = new ReactRootView(this);\n        ...\n        // Instantiate package\n        mReactCognitoPackage = new ReactCognitoPackage(this);\n        ...\n        mReactInstanceManager = ReactInstanceManager.builder()\n                .setApplication(getApplication())\n                .setBundleAssetName(\"index.android.bundle\")\n                .setJSMainModuleName(\"index.android\")\n\n                // Register the package\n                .addPackage(mReactCognitoPackage)\n\n                .setUseDeveloperSupport(BuildConfig.DEBUG)\n                .setInitialLifecycleState(LifecycleState.RESUMED)\n                .build();\n        ...\n    }\n}\n```\n\n### Step 4 - Permissions\n\nYou might have to add the following permission to your `AndroidManifest.xml`:\n\n```xml\n\u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n```\n\n## Contributors\n\n- [Sunny Gurnani](https://github.com/SunnyGurnani)\n\n## License\n\nThis software is licensed under the MIT License.\n\nReact and React Native are BSD licensed. Facebook also provide an additional patent grant.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorcmarc%2Freact-native-cognito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorcmarc%2Freact-native-cognito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorcmarc%2Freact-native-cognito/lists"}