forked from openid/AppAuth-JS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ChinthakaSenanayaka/dev
Added inline comments
- Loading branch information
Showing
6 changed files
with
95 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
/// <reference types="node" /> | ||
/** | ||
* class for PKCE code challenge and code verifier generation. | ||
*/ | ||
export declare class CodeVerifier { | ||
challenge: string; | ||
method: string; | ||
verifier: string; | ||
/** | ||
* base64 encoding | ||
* | ||
* @param value text to encode | ||
*/ | ||
private base64URLEncode; | ||
/** | ||
* Generate SHA256 code for given value | ||
* | ||
* @param value text to generate SHA256 code | ||
*/ | ||
static sha256(value: string): Buffer; | ||
/** | ||
* Get PKCE code verifier code. | ||
*/ | ||
private getVerifier; | ||
constructor(); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.