Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a8f95f1c6d
|
|||
|
|
b2886c0778 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsndr/cloudflare-worker-jwt",
|
"name": "@tsndr/cloudflare-worker-jwt",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@tsndr/cloudflare-worker-jwt",
|
"name": "@tsndr/cloudflare-worker-jwt",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "^3.13.0",
|
"@cloudflare/workers-types": "^3.13.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsndr/cloudflare-worker-jwt",
|
"name": "@tsndr/cloudflare-worker-jwt",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"description": "A lightweight JWT implementation with ZERO dependencies for Cloudflare Worker",
|
"description": "A lightweight JWT implementation with ZERO dependencies for Cloudflare Worker",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export interface JwtHeader {
|
|||||||
* @typedef JwtPayload
|
* @typedef JwtPayload
|
||||||
* @prop {string} [iss] Issuer
|
* @prop {string} [iss] Issuer
|
||||||
* @prop {string} [sub] Subject
|
* @prop {string} [sub] Subject
|
||||||
* @prop {string} [aud] Audience
|
* @prop {string | string[]} [aud] Audience
|
||||||
* @prop {string} [exp] Expiration Time
|
* @prop {string} [exp] Expiration Time
|
||||||
* @prop {string} [nbf] Not Before
|
* @prop {string} [nbf] Not Before
|
||||||
* @prop {string} [iat] Issued At
|
* @prop {string} [iat] Issued At
|
||||||
@@ -47,7 +47,7 @@ export interface JwtPayload {
|
|||||||
sub?: string
|
sub?: string
|
||||||
|
|
||||||
/** Audience */
|
/** Audience */
|
||||||
aud?: string
|
aud?: string | string[]
|
||||||
|
|
||||||
/** Expiration Time */
|
/** Expiration Time */
|
||||||
exp?: number
|
exp?: number
|
||||||
|
|||||||
Reference in New Issue
Block a user