diff --git a/egg.json b/egg.json index e891bb2..d6451d5 100644 --- a/egg.json +++ b/egg.json @@ -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": [ @@ -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" } diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..ea96e31 --- /dev/null +++ b/mod.ts @@ -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";