Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@navigraph/pkce

skysails1.8kUNLICENSED1.0.3TypeScript support: included

Generate Proof Key for Code Exchange (PKCE) challenge pair compatible with Coherent GT.

PKCE, oidc, oauth2, Coherent GT, msfs

readme

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