update readme
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user