Skip to content

Commit

Permalink
Add mod.ts because it is needed for nest.land
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Sep 25, 2020
1 parent c784dde commit 75527e6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
13 changes: 11 additions & 2 deletions egg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "djwt",
"description": "The absolute minimum to make JSON Web Tokens in deno. Based on JWT and JWS specifications.",
"bump": "patch",
"entry": "/mod.ts",
"stable": true,
"repository": "https://github.com/timonson/djwt",
"files": [
Expand All @@ -9,7 +11,14 @@
"create.ts",
"deps.ts",
"validate.ts",
"README.md"
"README.md",
"./mod.ts"
],
"ignore": [".git"]
"ignore": [
".git"
],
"checkFormat": "deno fmt",
"checkAll": true,
"unlisted": false,
"version": "0.1.0"
}
36 changes: 36 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
export {
makeJwt,
encrypt,
setExpiration,
makeSignature,
convertHexToBase64url,
convertStringToBase64url,
assertNever,
} from "./create.ts";

export type {
Algorithm,
Payload,
PayloadObject,
Jose,
JwtInput,
JsonValue,
} from "./create.ts";

export {
validateJwt,
validateJwtObject,
verifySignature,
checkHeaderCrit,
parseAndDecode,
isExpired,
isObject,
hasProperty,
} from "./validate.ts";

export type {
Handlers,
JwtObject,
JwtValidation,
Validation,
} from "./validate.ts";

0 comments on commit 75527e6

Please sign in to comment.