@tsndr/cloudflare-worker-jwt
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -40,3 +40,3 @@ /** | ||
type JWTAlgorithm = 'ES256' | 'ES384' | 'ES512' | 'HS256' | 'HS384' | 'HS512' | ||
type JWTAlgorithm = 'ES256' | 'ES384' | 'ES512' | 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | ||
@@ -43,0 +43,0 @@ type JWTSignOptions = { |
@@ -12,3 +12,3 @@ class Base64URL { | ||
constructor() { | ||
if (!crypto || !crypto.subtle) | ||
if (typeof crypto === 'undefined' || !crypto.subtle) | ||
throw new Error('Crypto not supported!') | ||
@@ -21,3 +21,6 @@ this.algorithms = { | ||
HS384: { name: 'HMAC', hash: { name: 'SHA-384' } }, | ||
HS512: { name: 'HMAC', hash: { name: 'SHA-512' } } | ||
HS512: { name: 'HMAC', hash: { name: 'SHA-512' } }, | ||
RS256: { name: 'RSASSA-PKCS1-v1_5', hash: { name: 'SHA-256' } }, | ||
RS384: { name: 'RSASSA-PKCS1-v1_5', hash: { name: 'SHA-384' } }, | ||
RS512: { name: 'RSASSA-PKCS1-v1_5', hash: { name: 'SHA-512' } }, | ||
} | ||
@@ -24,0 +27,0 @@ } |
{ | ||
"name": "@tsndr/cloudflare-worker-jwt", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A lightweight JWT implementation with ZERO dependencies for Cloudflare Worker", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -122,2 +122,5 @@ # Cloudflare Worker JWT | ||
- HS384 | ||
- HS512 | ||
- HS512 | ||
- RS256 | ||
- RS384 | ||
- RS512 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12986
159
125
7