update readme
This commit is contained in:
@@ -24,9 +24,10 @@ npm i @tsndr/cloudflare-worker-jwt
|
||||
### Basic Example
|
||||
|
||||
```typescript
|
||||
async () => {
|
||||
import jwt from "@tsndr/cloudflare-worker-jwt"
|
||||
|
||||
async () => {
|
||||
|
||||
// Create a token
|
||||
const token = await jwt.sign({
|
||||
sub: "1234",
|
||||
@@ -52,9 +53,10 @@ async () => {
|
||||
### Restrict Timeframe
|
||||
|
||||
```typescript
|
||||
async () => {
|
||||
import jwt from "@tsndr/cloudflare-worker-jwt"
|
||||
|
||||
async () => {
|
||||
|
||||
// Create a token
|
||||
const token = await jwt.sign({
|
||||
sub: "1234",
|
||||
|
||||
Reference in New Issue
Block a user