Gathering detailed insights and metrics for react-simple-cookie-store
Gathering detailed insights and metrics for react-simple-cookie-store
Gathering detailed insights and metrics for react-simple-cookie-store
Gathering detailed insights and metrics for react-simple-cookie-store
npm install react-simple-cookie-store
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
36 Commits
2 Watching
14 Branches
1 Contributors
Updated on 15 Sept 2020
TypeScript (95.59%)
JavaScript (4.41%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
1,780%
94
Compared to previous week
Last month
9.7%
238
Compared to previous month
Last year
-58.4%
2,253
Compared to previous year
A dead simple interface for storing cookies. Built on top of universal-cookies and luxon. Automatically sets cookies as secure provided the user is browsing via HTTPS. To illustrate usage, check out this simple example storing an access token:
1import { setCookie, getCookie, removeCookie } from "react-simple-cookie-store" 2 3// Do some work... 4async function login(email,password) { 5 let token = await authenticate(username,password) 6 // Sets a cookie to store some value (i.e. accessToken) which will be valid for 2 days. 7 setCookie("token", token, 2) 8} 9 10// Retrieves the stored accessToken. 11function currentUser() { 12 return getCookie("token") 13} 14 15// Clear the cookie storing the current user's access token. 16function logout() { 17 removeCookie("token") 18}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
48 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More