Nocturnal Programmer's Machine

    react-native-pkce-challenge
    TypeScript icon, indicating that this package has built-in type declarations

    5.1.1 • Public • Published

    React Native PKCE Challenge

    Package version MIT license PRs Welcome

    Proof Key for Code Exchange (PKCE) challenge generator for React Native.

    API Compatibility

    iOS Android Web Windows macOS Expo

    Under the hood

    iOS Android Web Windows macOS Expo
    arc4random_buf arc4random_buf crypto.randombytes Math.random arc4random_buf expo-random

    Installation

    yarn add react-native-pkce-challenge
    npx pod-install ios # iOS Only
    npx pod-install macos # macOS Only

    Usage

    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_'
    }

    Upgrading

    See UPGRADING.md

    Changelogs

    See CHANGELOGS.md

    License

    Copyright © 2022 David Angulo, released under the MIT license, see LICENSE.

    Install

    npm i react-native-pkce-challenge

    DownloadsWeekly Downloads

    2,208

    Version

    5.1.1

    License

    MIT

    Unpacked Size

    345 kB

    Total Files

    104

    Last publish

    Collaborators

    • dcangulo