unjwt 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,13 +15,13 @@ Run the following command to add `unjwt` to your project.
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
# pnpm
|
|
18
|
-
pnpm add
|
|
18
|
+
pnpm add unjwt
|
|
19
19
|
|
|
20
20
|
# npm
|
|
21
|
-
npm install
|
|
21
|
+
npm install unjwt
|
|
22
22
|
|
|
23
23
|
# yarn
|
|
24
|
-
yarn add
|
|
24
|
+
yarn add unjwt
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
package/dist/index.d.mts
CHANGED
|
@@ -45,7 +45,7 @@ interface JWTRegisteredClaims {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
declare function signJWT<T extends Record<string, any> = Record<string, any>>({ payload, secret, issuer, audience, expires, header, signatureMethod, hashMethod, }: {
|
|
48
|
-
payload
|
|
48
|
+
payload?: T;
|
|
49
49
|
secret: string;
|
|
50
50
|
issuer: string;
|
|
51
51
|
audience: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ interface JWTRegisteredClaims {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
declare function signJWT<T extends Record<string, any> = Record<string, any>>({ payload, secret, issuer, audience, expires, header, signatureMethod, hashMethod, }: {
|
|
48
|
-
payload
|
|
48
|
+
payload?: T;
|
|
49
49
|
secret: string;
|
|
50
50
|
issuer: string;
|
|
51
51
|
audience: string;
|
package/package.json
CHANGED