Gathering detailed insights and metrics for simple-pkce-browser
Gathering detailed insights and metrics for simple-pkce-browser
Gathering detailed insights and metrics for simple-pkce-browser
Gathering detailed insights and metrics for simple-pkce-browser
npm install simple-pkce-browser
Typescript
Module System
Node Version
NPM Version
70.4
Supply Chain
79
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (71.35%)
TypeScript (28.65%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Oct 15, 2020
Latest Version
1.0.3
Package Id
simple-pkce-browser@1.0.3
Unpacked Size
10.63 kB
Size
3.92 kB
File Count
12
NPM Version
6.14.8
Node Version
12.18.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
PKCE HMAC or hash SHA256 base64 challenge & verifier generator for any browser (using fast-sha256)
1npm i simple-pkce-browser
Library exports single function - createPKCEHelper(isHMAC = true)
This function returns object with two methods on it:
getChallenge(verifier: string) => string
- for getting challenge from verifiergenerateChallenge(verifierLength: number) => PKCEChallenge
- generates verifier of given length and returns PKCEChallenge
:1interface PKCEChallenge { 2 verifier: string; 3 challenge: string; 4}
if you need SHA256 base64 HMAC challenge:
1import { createPKCEHelper, PKCEChallenge, PKCEHelperLegacyBrowser } from 'simple-pkce-browser' 2 3const VERIFIER_LENGTH = 64 4const { generateChallenge, getChallenge }: PKCEHelperLegacyBrowser = createPKCEHelper() 5const { verifier, challenge }: PKCEChallenge = generateChallenge(VERIFIER_LENGTH)
if you need SHA256 base64 hash you do exactly the same, but need to pass false
as the first parameter to createPKCEHelper()
:
1import { createPKCEHelper, PKCEChallenge, PKCEHelperLegacyBrowser } from 'simple-pkce-browser' 2 3const VERIFIER_LENGTH = 64 4const { generateChallenge, getChallenge }: PKCEHelperLegacyBrowser = createPKCEHelper(false) 5const { verifier, challenge }: PKCEChallenge = generateChallenge(VERIFIER_LENGTH)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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