@navigraph/pkce
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@navigraph/pkce

Generates a Proof Key for Code Exchange (PKCE) challenge pair in browser environments that does not have the SubtleCrypto interface exposed like Coherent GT in Microsoft Flight Simulator 2020.

Installation

npm install @navigraph/pkce

or

yarn add @navigraph/pkce

Usage

const pkce = require("@navigraph/pkce");
pkce();

Returns an object with code_verifier and code_challenge like this:

{
    code_verifier: 'YnV4cVnTBbubIHcn-zOuTvi26G9bI0cSb-28loIj27g',
    code_challenge: 'XniLYb3i4x_gmyTcl8fvklzHagRKIIO4dSX-ZZl-cP4'
}

Package Sidebar

Install

npm i @navigraph/pkce

Weekly Downloads

92

Version

1.0.3

License

UNLICENSED

Unpacked Size

4.72 kB

Total Files

6

Last publish

Collaborators

  • navigraph-bot
  • stephendoc
  • m4rkus
  • skysails