Add useCsrfToken hook and update README

A new `useCsrfToken` hook has been added for fetching CSRF token from the meta tag. The shared package's exports have been updated to include this new hook. Additionally, extensive documentation on writing server actions and API route handlers, as well as the usage of Captcha token protection and CSRF token, has been added to the README file.
This commit is contained in:
giancarlo
2024-04-22 11:56:42 +08:00
parent e2503333e2
commit 61b1edcdd9
4 changed files with 253 additions and 1 deletions

View File

@@ -11,7 +11,8 @@
"prettier": "@kit/prettier-config",
"exports": {
"./logger": "./src/logger/index.ts",
"./utils": "./src/utils.ts"
"./utils": "./src/utils.ts",
"./hooks": "./src/hooks/index.ts"
},
"dependencies": {
"@tanstack/react-table": "^8.16.0",