1
0

update readme

This commit is contained in:
2025-05-11 23:11:14 +02:00
parent 95e45e67f6
commit 1b6ac02f7c

View File

@@ -24,9 +24,10 @@ npm i @tsndr/cloudflare-worker-jwt
### Basic Example ### Basic Example
```typescript ```typescript
async () => {
import jwt from "@tsndr/cloudflare-worker-jwt" import jwt from "@tsndr/cloudflare-worker-jwt"
async () => {
// Create a token // Create a token
const token = await jwt.sign({ const token = await jwt.sign({
sub: "1234", sub: "1234",
@@ -52,9 +53,10 @@ async () => {
### Restrict Timeframe ### Restrict Timeframe
```typescript ```typescript
async () => {
import jwt from "@tsndr/cloudflare-worker-jwt" import jwt from "@tsndr/cloudflare-worker-jwt"
async () => {
// Create a token // Create a token
const token = await jwt.sign({ const token = await jwt.sign({
sub: "1234", sub: "1234",