{"id":15292544,"url":"https://github.com/bernabe9/redux-react-native-session","last_synced_at":"2026-03-03T13:37:07.050Z","repository":{"id":57135918,"uuid":"95249542","full_name":"bernabe9/redux-react-native-session","owner":"bernabe9","description":"Keep your session sync with the Async Storage and Redux","archived":false,"fork":false,"pushed_at":"2024-08-27T20:44:02.000Z","size":25,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T23:23:00.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bernabe9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-06-23T19:19:31.000Z","updated_at":"2024-02-05T02:24:54.000Z","dependencies_parsed_at":"2024-10-08T12:18:06.356Z","dependency_job_id":"7891f213-e6e1-4f5f-9484-a9712c7622f0","html_url":"https://github.com/bernabe9/redux-react-native-session","commit_stats":{"total_commits":21,"total_committers":5,"mean_commits":4.2,"dds":0.5714285714285714,"last_synced_commit":"57be15763902cd68d78e91cfd2b92793f3fa2c87"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bernabe9/redux-react-native-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernabe9%2Fredux-react-native-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernabe9%2Fredux-react-native-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernabe9%2Fredux-react-native-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernabe9%2Fredux-react-native-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernabe9","download_url":"https://codeload.github.com/bernabe9/redux-react-native-session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernabe9%2Fredux-react-native-session/sbom","scorecard":{"id":234378,"data":{"date":"2025-08-11","repo":{"name":"github.com/bernabe9/redux-react-native-session","commit":"57be15763902cd68d78e91cfd2b92793f3fa2c87"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 2/21 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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 2 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-17T05:21:05.781Z","repository_id":57135918,"created_at":"2025-08-17T05:21:05.784Z","updated_at":"2025-08-17T05:21:05.784Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30046765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T10:53:31.691Z","status":"ssl_error","status_checked_at":"2026-03-03T10:53:22.041Z","response_time":61,"last_error":"SSL_read: 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-09-30T16:18:42.921Z","updated_at":"2026-03-03T13:37:07.034Z","avatar_url":"https://github.com/bernabe9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redux React Native Session\n\n[![NPM version](https://img.shields.io/npm/v/redux-react-native-session.svg?style=flat)](https://npmjs.org/package/redux-react-native-session)\n[![Dependency Status](https://img.shields.io/david/bernabe9/redux-react-native-session.svg)](https://david-dm.org/bernabe9/redux-react-native-session)\n\nKeep your session sync with AsyncStorage and Redux :key:\n\nRedux React Native Session provides an simple API that allows to manage sessions through the app.\n\n## Installation\n\n* Install:\n\nyarn:\n\n`yarn add redux-react-native-session`\n\nnpm:\n\n`npm install redux-react-native-session`\n\n* Link:\n\n`react-native link @react-native-community/async-storage`\n\n## Usage\n\n- Add the session reducer:\n```javascript\nimport { combineReducers } from 'redux';\nimport { sessionReducer } from 'redux-react-native-session';\n\nconst reducers = {\n  // ... your other reducers here ...\n  session: sessionReducer\n};\nconst reducer = combineReducers(reducers);\n```\n- Initiate the session service:\n```javascript\nimport { createStore } from 'redux';\nimport { sessionService } from 'redux-react-native-session';\n\nconst store = createStore(reducer)\n\nsessionService.initSessionService(store);\n```\n\n## API\n\n### initSessionService(store)\nInitialize an instance of the session service.\n\n### refreshFromAsyncStorage\nForce to refresh the Redux store from the AsyncStorage.\n\nNote: this function is called once the session service is initialized\n\n### saveSession(session:object) : Promise\nSaves the session object in the AsyncStorage and changes the `authenticated` flag to `true` in Redux store\n\n### loadSession : Promise(currentSession:Object)\nReturns the current session if exists\n\nExample:\n```javascript\nloadSession\n.then(currentSession =\u003e console.log(currentSession))\n.catch(err =\u003e console.log(err))\n```\n\n### deleteSession : Promise\nDeletes the current session from the AsyncStorage\n\n### saveUser(user:object) : Promise\nSaves the user object in the AsyncStorage and in the Redux store\n\n### loadUser : Promise\nReturns the current user if exists\n\n### deleteUser : Promise\nDeletes the current user from the AsyncStorage and the Redux store\n\n## Immutable JS\nUsage of `redux-react-native-session` with an immutable store is really simple.\nInstead of the `sessionReducer` import the `sessionImmutableReducer`, as the following example:\n\n- Add the session reducer:\n```javascript\nimport { combineReducers } from 'redux';\nimport { sessionImmutableReducer as session } from 'redux-react-native-session';\n\nconst reducers = {\n  // ... your other reducers here ...\n  session\n};\nconst reducer = combineReducers(reducers);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernabe9%2Fredux-react-native-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernabe9%2Fredux-react-native-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernabe9%2Fredux-react-native-session/lists"}