PKCE code verifier and challenge generator for Deno. It requires Deno 1.0 or greater.
import { create } from 'https://raw.githubusercontent.com/DiFronzo/pkce-deno/master/mod.ts';
// OR import { create } from 'https://deno.land/x/pkce_deno/mod.ts'
const codePair = create();
// {
// codeVerifier: 'tnsFvonDznrEvywCAryrzozCwmuAxEwDFtDzxnvzErCmumwqrAAEtrtvwCsEzBFvxFnmuvByDBqrnvwsEovtBEosBvtDEzABCDDCutEuwnFAomotrxFuolzwAsEvzBEs',
// codeChallenge: '4BEE-zDiqCqq89S3rTimRMYZA-oVanxBqrhQ6TnZTZc'
// }
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)deno test
and deno fmt
do not generate errorsgit push origin feature/AmazingFeature
)Author: DiFronzo
GitHub: https://github.com/DiFronzo/pkce-deno
#deno #nodejs #javascript #node-js