Skip to content

Commit

Permalink
FEAT: Delete user (#134)
Browse files Browse the repository at this point in the history
Part of #3

## Description

- Add middleware to handle Authorization
- Add methods to Archive a Page and Delete Questions by `uid`
- Add endpoint to DELETE user

📝 As stated [here](https://nextjs.org/docs/pages/api-reference/edge#unsupported-apis),

> Native Node.js APIs are not supported

that's why there is a new package added `next-firebase-auth-edge` as a workaround.

Co-authored-by: Irfan Maulana <[email protected]>
  • Loading branch information
haruelrovix and mazipan authored Oct 28, 2024
1 parent b259b88 commit a5d018c
Show file tree
Hide file tree
Showing 9 changed files with 1,132 additions and 1,033 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"start": "next start"
},
"dependencies": {
"@babel/parser": "^7.25.7",
"@babel/traverse": "^7.25.7",
"@fingerprintjs/fingerprintjs": "^4.5.0",
"@babel/parser": "^7.26.1",
"@babel/traverse": "^7.25.9",
"@fingerprintjs/fingerprintjs": "^4.5.1",
"@hookform/resolvers": "^3.9.0",
"@notionhq/client": "^2.2.15",
"@radix-ui/react-accordion": "^1.2.1",
Expand All @@ -44,27 +44,27 @@
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
"@sindresorhus/slugify": "^2.2.1",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query-devtools": "^5.59.8",
"@tanstack/react-query": "^5.59.16",
"@tanstack/react-query-devtools": "^5.59.16",
"@types/canvas-confetti": "^1.6.4",
"@types/node": "20.16.11",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@upstash/ratelimit": "^2.0.3",
"@types/node": "20.17.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@upstash/ratelimit": "^2.0.4",
"@upstash/redis": "^1.34.3",
"@vercel/og": "^0.6.3",
"canvas-confetti": "^1.9.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "1.0.0",
"dom-to-image-more": "^3.4.5",
"dom-to-image-more": "^3.5.0",
"encoding": "^0.1.13",
"firebase": "^10.14.0",
"firebase-admin": "^12.6.0",
"firebase": "^11.0.1",
"firebase-admin": "^12.7.0",
"framer-motion": "^11.11.10",
"lucide-react": "^0.451.0",
"lucide-react": "^0.453.0",
"nanoid": "^5.0.7",
"next": "14.2.15",
"next": "14.2.16",
"next-themes": "^0.3.0",
"node-mailjet": "^6.0.6",
"nuqs": "^2.0.4",
Expand All @@ -74,25 +74,26 @@
"react-tweet": "^3.2.1",
"sharp": "^0.33.5",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.3",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"next-firebase-auth-edge": "1.7.1",
"typescript": "5.6.3",
"undici": "^6.20.0",
"undici": "^6.20.1",
"usehooks-ts": "^3.1.0",
"valibot": "^0.42.1",
"vaul": "^1.1.0",
"zod": "^3.23.8",
"zustand": "^4.5.5"
},
"devDependencies": {
"@babel/types": "^7.25.7",
"@biomejs/biome": "1.9.3",
"@babel/types": "^7.26.0",
"@biomejs/biome": "1.9.4",
"@types/babel__traverse": "^7.20.6",
"autoprefixer": "10.4.20",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"postcss": "8.4.47",
"tailwindcss": "3.4.13"
"tailwindcss": "3.4.14"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
Loading

0 comments on commit a5d018c

Please sign in to comment.