Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
react-native-pkce-challenge
Advanced tools
Proof Key for Code Exchange (PKCE) challenge generator for React Native
Proof Key for Code Exchange (PKCE) challenge generator for React Native.
Platform | Support |
---|---|
iOS | 🟢 |
Android | 🟢 |
Web | 🟢 |
Windows | 🟡 |
macOS | 🟢 |
Expo | 🟢 |
Node.js | 🟢 |
yarn add react-native-pkce-challenge
npx pod-install
yarn add react-native-pkce-challenge@5.3.2
npx pod-install
import pkceChallenge from 'react-native-pkce-challenge';
const challenge = pkceChallenge();
The constant challenge
will hold an object like the following:
{
codeChallenge: 'XsRstqNrXT76Iop3uMoyyCQmaGthJbKKJwXBSoQXaRk',
codeVerifier: 'OZOHUwLddiPyTFJulnUYnU9jsf7oyULflbFpwj40bE9S77iaeisGvzvaVvvPE7oO-xaV4skxwKDFBBV7JofVNxCgUSauqUDVcVjggE4-M6zthVUmeUrSAHatmIBm_P0_'
}
import { generateChallenge } from 'react-native-pkce-challenge';
generateChallenge(challenge.codeVerifier) === challenge.codeChallenge; // true
import { verifyChallenge } from 'react-native-pkce-challenge';
verifyChallenge(challenge.codeVerifier, challenge.codeChallenge); // true
verifyChallenge(challenge.codeVerifier, 'invalid challenge'); // false
See UPGRADING.md
See CHANGELOGS.md
Copyright © 2024 David Angulo, released under the MIT license, see LICENSE.
Made with create-react-native-library
FAQs
Proof Key for Code Exchange (PKCE) challenge generator for React Native
We found that react-native-pkce-challenge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.