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