@elysiajs/jwt 0.2.0 → 0.2.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/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface JWTOption<Name extends string | undefined = 'jwt', Schema exten
|
|
|
18
18
|
nbf?: string | number;
|
|
19
19
|
exp?: string | number;
|
|
20
20
|
}
|
|
21
|
-
export declare const jwt: <Name extends string
|
|
21
|
+
export declare const jwt: <Name extends string = "jwt", Schema extends TSchema | undefined = undefined>({ name, secret, alg, crit, schema, nbf, exp, ...payload }: JWTOption<Name, Schema>) => (app: Elysia) => Elysia<{
|
|
22
22
|
store: Record<any, any> & Record<typeof import("elysia").SCHEMA, {}> & Record<typeof import("elysia").DEFS, {}>;
|
|
23
23
|
request: { [key in Name extends string ? Name : "jwt"]: {
|
|
24
24
|
sign: (morePayload: UnwrapSchema<Schema, Record<string, string>> & JWTPayloadSpec) => Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elysiajs/jwt",
|
|
3
3
|
"description": "Plugin for Elysia for using JWT Authentication",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "saltyAom",
|
|
7
7
|
"url": "https://github.com/SaltyAom",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"release": "npm run build && npm run test && npm publish --access public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"jose": "^4.
|
|
38
|
+
"jose": "^4.12.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@elysiajs/cookie": "^0.1.1",
|