Added in a new file to store the list of JWT algorithms that can be used, as this error was occurring due to a mismatch between what you could sign and what you could verify

This commit is contained in:
mt3571 committed 2020-12-01 13:38:01 +00:00
1 parent c9d9730726
commit 3e0525ee9e
3 files changed
+33 -18

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
/**
* DateTime resources.
*
* @author mt3571 [mt3571@protonmail.com]
* @copyright Crown Copyright 2020
* @license Apache-2.0
*/
/**
* List of the JWT algorithms that can be used
*/
export const JWT_ALGORITHMS = [
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512",
"ES256",
"ES384",
"ES512",
"None"
];