Buckets:
| import { JWTPayload, jwtVerify, KeyLike, SignJWT } from "jose" | |
| export namespace jwt { | |
| export function create( | |
| payload: JWTPayload, | |
| algorithm: string, | |
| privateKey: KeyLike, | |
| ) { | |
| return new SignJWT(payload) | |
| .setProtectedHeader({ alg: algorithm, typ: "JWT", kid: "sst" }) | |
| .sign(privateKey) | |
| } | |
| export function verify<T>(token: string, publicKey: KeyLike) { | |
| return jwtVerify<T>(token, publicKey) | |
| } | |
| } | |
Xet Storage Details
- Size:
- 436 Bytes
- Xet hash:
- fb29cf8719056fece22fa10567593570182cbf966c2f4ec5885c95dfb9907d98
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.