-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Cleaned up and simplified crypto utils and consolidated symbols. - `completeAuthorizationRequestIfPossible()` now returns a `Promise<void>` so clients can determine if the check for authorization is complete.
- Loading branch information
Showing
17 changed files
with
58 additions
and
82 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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
export declare function bufferToString(buffer: Uint8Array): string; | ||
export interface RandomGenerator { | ||
(sizeInBytes?: number): string; | ||
} | ||
export declare type RandomGenerator = (sizeInBytes?: number) => string; | ||
export declare const cryptoGenerateRandom: RandomGenerator; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
import * as cryptoUtils from '../crypto_utils'; | ||
export interface RandomGenerator extends cryptoUtils.RandomGenerator { | ||
} | ||
import { RandomGenerator } from '../crypto_utils'; | ||
export declare const nodeCryptoGenerateRandom: RandomGenerator; |
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.