-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
404 additions
and
79 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
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,7 +1,29 @@ | ||
/** | ||
* Enumeration of supported algorithm types for HMAC hashing. | ||
* | ||
* @enum {string} | ||
* | ||
* @property {string} md5hash - Represents the MD5 hash algorithm. | ||
* | ||
* @property {string} md5hmac - Represents the HMAC-MD5 hash algorithm, | ||
* which uses a secret key for hashing. | ||
* | ||
* @property {string} sha1hmac - Represents the HMAC-SHA1 hash algorithm, | ||
* which uses a secret key for hashing. | ||
* | ||
* @property {string} sha256hmac - Represents the HMAC-SHA256 hash algorithm, | ||
* which uses a secret key for hashing. | ||
* | ||
* @property {string} sha512hmac - Represents the HMAC-SHA512 hash algorithm, | ||
* which uses a secret key for hashing. | ||
* | ||
* Note: Ensure to select an algorithm that adheres to your security | ||
* requirements and is supported by the API endpoint you're interacting with. | ||
*/ | ||
export enum AlgorithmTypes { | ||
md5hash = 'MD5HASH', | ||
md5hmac = 'MD5HMAC', | ||
sha1hmac = 'SHA1HMAC', | ||
sha256hmac = 'SHA256HMAC', | ||
sha512hmac = 'SHA512HMAC', | ||
md5hash = 'MD5HASH', | ||
md5hmac = 'MD5HMAC', | ||
sha1hmac = 'SHA1HMAC', | ||
sha256hmac = 'SHA256HMAC', | ||
sha512hmac = 'SHA512HMAC', | ||
} |
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
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
14 changes: 14 additions & 0 deletions
14
packages/auth/lib/errors/InvalidSignatureAlgroithmError.ts
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.