Buckets:
| // src/jwt.ts | |
| import { jwtVerify, SignJWT } from "jose"; | |
| var jwt; | |
| ((jwt) => { | |
| function create(payload, algorithm, privateKey) { | |
| return new SignJWT(payload).setProtectedHeader({ alg: algorithm, typ: "JWT", kid: "sst" }).sign(privateKey); | |
| } | |
| jwt.create = create; | |
| function verify(token, publicKey) { | |
| return jwtVerify(token, publicKey); | |
| } | |
| jwt.verify = verify; | |
| })(jwt ||= {}); | |
| export { | |
| jwt | |
| }; | |
Xet Storage Details
- Size:
- 409 Bytes
- Xet hash:
- 6053c62e206677316b00889ff8418f30aec5ca21f88efcf03d6c37291e4045f6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.