Skip to content

Commit

Permalink
fix: permission policy
Browse files Browse the repository at this point in the history
  • Loading branch information
jstinhw committed Jul 17, 2024
1 parent 749b28d commit e41b2d9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
Binary file modified create-account/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion create-account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@tanstack/react-query": "^5.40.0",
"@zerodev/wallet": "^0.1.3",
"@zerodev/wallet": "^0.1.4",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
Expand Down
Binary file modified quick-start/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion quick-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@zerodev/wallet": "^0.1.3",
"@zerodev/wallet": "^0.1.4",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
Expand Down
Binary file modified session-keys/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion session-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@zerodev/wallet": "^0.1.3",
"@zerodev/wallet": "^0.1.4",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
Expand Down
15 changes: 12 additions & 3 deletions session-keys/src/app/Sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,18 @@ export default function SessionBlock() {
value: 3,
},
],
}
]
}
},
],
},
policies: [
{
type: "rate-limit",
data: {
count: 100,
interval: 60 * 60 * 24
}
}
],
},
],
expiry: Math.floor(Date.now().valueOf() / 1000) + 3600,
Expand Down

0 comments on commit e41b2d9

Please sign in to comment.