diff --git a/frontend/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml
similarity index 100%
rename from frontend/.github/workflows/pipeline.yaml
rename to .github/workflows/pipeline.yaml
diff --git a/frontend/.gitignore b/.gitignore
similarity index 100%
rename from frontend/.gitignore
rename to .gitignore
diff --git a/frontend/Dashboard.css b/Dashboard.css
similarity index 100%
rename from frontend/Dashboard.css
rename to Dashboard.css
diff --git a/README.md b/README.md
index fb3c828..a36934d 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,16 @@
-# Grid
+# React + Vite
-A 3D city where every GitHub developer gets a building. The height of your building is determined by your public repository count. Walk through the city, explore other developers profiles, and find your place in the grid.
+This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
-Built with React Three Fiber, Rapier physics, Supabase, and nipplejs for mobile controls.
+Currently, two official plugins are available:
-## What it does
+- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
+- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
-Every registered user gets a permanent address in the city. Your building grows taller as your GitHub repository count increases. Hover over any building to see the developer profile card with their stats and links. Click to visit their GitHub. On mobile, use the dual joystick controls to move and look around.
+## React Compiler
-## Stack
+The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
-React, Three.js, React Three Fiber, Rapier, Supabase, nipplejs, Vite
+## Expanding the ESLint configuration
-## Environment Variables
-
-```env
-VITE_GITHUB_TOKEN
-VITE_PUBLIC_SUPABASE_URL
-VITE_PUBLIC_SUPABASE_PUBLISHABLE_KEY
-```
-
-## Self Hosting
-
-This project is fully open source. If you think something could be better, feel free to contribute. The codebase is straightforward and contributions of any size are welcome.
-
-## License
-
-MIT
+If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
diff --git a/frontend/eslint.config.js b/eslint.config.js
similarity index 100%
rename from frontend/eslint.config.js
rename to eslint.config.js
diff --git a/frontend/README.md b/frontend/README.md
deleted file mode 100644
index a36934d..0000000
--- a/frontend/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# React + Vite
-
-This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
-
-Currently, two official plugins are available:
-
-- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
-- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
-
-## React Compiler
-
-The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
-
-## Expanding the ESLint configuration
-
-If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
deleted file mode 100644
index 479227f..0000000
--- a/frontend/package-lock.json
+++ /dev/null
@@ -1,3520 +0,0 @@
-{
- "name": "frontend",
- "version": "0.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "frontend",
- "version": "0.0.0",
- "dependencies": {
- "@react-three/drei": "^10.7.7",
- "@react-three/fiber": "^9.6.1",
- "@react-three/rapier": "^2.2.0",
- "cors": "^2.8.6",
- "dotenv": "^17.4.2",
- "nipplejs": "^1.0.2",
- "react": "^19.2.5",
- "react-dom": "^19.2.5",
- "react-router-dom": "^7.15.0"
- },
- "devDependencies": {
- "@eslint/js": "^10.0.1",
- "@tailwindcss/vite": "^4.3.0",
- "@types/react": "^19.2.14",
- "@types/react-dom": "^19.2.3",
- "@vitejs/plugin-react": "^6.0.1",
- "eslint": "^10.2.1",
- "eslint-plugin-react-hooks": "^7.1.1",
- "eslint-plugin-react-refresh": "^0.5.2",
- "globals": "^17.5.0",
- "tailwindcss": "^4.3.0",
- "vite": "^8.0.10"
- }
- },
- "node_modules/@babel/code-frame": {
- "version": "7.29.0",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
- "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-validator-identifier": "^7.28.5",
- "js-tokens": "^4.0.0",
- "picocolors": "^1.1.1"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/compat-data": {
- "version": "7.29.3",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz",
- "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/core": {
- "version": "7.29.0",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
- "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/code-frame": "^7.29.0",
- "@babel/generator": "^7.29.0",
- "@babel/helper-compilation-targets": "^7.28.6",
- "@babel/helper-module-transforms": "^7.28.6",
- "@babel/helpers": "^7.28.6",
- "@babel/parser": "^7.29.0",
- "@babel/template": "^7.28.6",
- "@babel/traverse": "^7.29.0",
- "@babel/types": "^7.29.0",
- "@jridgewell/remapping": "^2.3.5",
- "convert-source-map": "^2.0.0",
- "debug": "^4.1.0",
- "gensync": "^1.0.0-beta.2",
- "json5": "^2.2.3",
- "semver": "^6.3.1"
- },
- "engines": {
- "node": ">=6.9.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/babel"
- }
- },
- "node_modules/@babel/generator": {
- "version": "7.29.1",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
- "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.29.0",
- "@babel/types": "^7.29.0",
- "@jridgewell/gen-mapping": "^0.3.12",
- "@jridgewell/trace-mapping": "^0.3.28",
- "jsesc": "^3.0.2"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-compilation-targets": {
- "version": "7.28.6",
- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
- "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/compat-data": "^7.28.6",
- "@babel/helper-validator-option": "^7.27.1",
- "browserslist": "^4.24.0",
- "lru-cache": "^5.1.1",
- "semver": "^6.3.1"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-globals": {
- "version": "7.28.0",
- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
- "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-module-imports": {
- "version": "7.28.6",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
- "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/traverse": "^7.28.6",
- "@babel/types": "^7.28.6"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-module-transforms": {
- "version": "7.28.6",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
- "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-module-imports": "^7.28.6",
- "@babel/helper-validator-identifier": "^7.28.5",
- "@babel/traverse": "^7.28.6"
- },
- "engines": {
- "node": ">=6.9.0"
- },
- "peerDependencies": {
- "@babel/core": "^7.0.0"
- }
- },
- "node_modules/@babel/helper-string-parser": {
- "version": "7.27.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-validator-identifier": {
- "version": "7.28.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-validator-option": {
- "version": "7.27.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
- "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helpers": {
- "version": "7.29.2",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
- "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/template": "^7.28.6",
- "@babel/types": "^7.29.0"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/parser": {
- "version": "7.29.3",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz",
- "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.29.0"
- },
- "bin": {
- "parser": "bin/babel-parser.js"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@babel/runtime": {
- "version": "7.29.2",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",
- "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/template": {
- "version": "7.28.6",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
- "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/code-frame": "^7.28.6",
- "@babel/parser": "^7.28.6",
- "@babel/types": "^7.28.6"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/traverse": {
- "version": "7.29.0",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
- "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/code-frame": "^7.29.0",
- "@babel/generator": "^7.29.0",
- "@babel/helper-globals": "^7.28.0",
- "@babel/parser": "^7.29.0",
- "@babel/template": "^7.28.6",
- "@babel/types": "^7.29.0",
- "debug": "^4.3.1"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/types": {
- "version": "7.29.0",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
- "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.27.1",
- "@babel/helper-validator-identifier": "^7.28.5"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@dimforge/rapier3d-compat": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",
- "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",
- "license": "Apache-2.0"
- },
- "node_modules/@emnapi/core": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
- "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@emnapi/wasi-threads": "1.2.1",
- "tslib": "^2.4.0"
- }
- },
- "node_modules/@emnapi/runtime": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",
- "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "tslib": "^2.4.0"
- }
- },
- "node_modules/@emnapi/wasi-threads": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
- "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "tslib": "^2.4.0"
- }
- },
- "node_modules/@eslint-community/eslint-utils": {
- "version": "4.9.1",
- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
- "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "eslint-visitor-keys": "^3.4.3"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- },
- "peerDependencies": {
- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
- }
- },
- "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
- "version": "3.4.3",
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/@eslint-community/regexpp": {
- "version": "4.12.2",
- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
- "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
- }
- },
- "node_modules/@eslint/config-array": {
- "version": "0.23.5",
- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
- "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@eslint/object-schema": "^3.0.5",
- "debug": "^4.3.1",
- "minimatch": "^10.2.4"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- }
- },
- "node_modules/@eslint/config-helpers": {
- "version": "0.5.5",
- "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.5.tgz",
- "integrity": "sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@eslint/core": "^1.2.1"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- }
- },
- "node_modules/@eslint/core": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",
- "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@types/json-schema": "^7.0.15"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- }
- },
- "node_modules/@eslint/js": {
- "version": "10.0.1",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",
- "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://eslint.org/donate"
- },
- "peerDependencies": {
- "eslint": "^10.0.0"
- },
- "peerDependenciesMeta": {
- "eslint": {
- "optional": true
- }
- }
- },
- "node_modules/@eslint/object-schema": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",
- "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- }
- },
- "node_modules/@eslint/plugin-kit": {
- "version": "0.7.1",
- "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz",
- "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@eslint/core": "^1.2.1",
- "levn": "^0.4.1"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- }
- },
- "node_modules/@humanfs/core": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
- "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@humanfs/types": "^0.15.0"
- },
- "engines": {
- "node": ">=18.18.0"
- }
- },
- "node_modules/@humanfs/node": {
- "version": "0.16.8",
- "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
- "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@humanfs/core": "^0.19.2",
- "@humanfs/types": "^0.15.0",
- "@humanwhocodes/retry": "^0.4.0"
- },
- "engines": {
- "node": ">=18.18.0"
- }
- },
- "node_modules/@humanfs/types": {
- "version": "0.15.0",
- "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
- "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": ">=18.18.0"
- }
- },
- "node_modules/@humanwhocodes/module-importer": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": ">=12.22"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/nzakas"
- }
- },
- "node_modules/@humanwhocodes/retry": {
- "version": "0.4.3",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
- "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": ">=18.18"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/nzakas"
- }
- },
- "node_modules/@jridgewell/gen-mapping": {
- "version": "0.3.13",
- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.0",
- "@jridgewell/trace-mapping": "^0.3.24"
- }
- },
- "node_modules/@jridgewell/remapping": {
- "version": "2.3.5",
- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/gen-mapping": "^0.3.5",
- "@jridgewell/trace-mapping": "^0.3.24"
- }
- },
- "node_modules/@jridgewell/resolve-uri": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.5.5",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@jridgewell/trace-mapping": {
- "version": "0.3.31",
- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/resolve-uri": "^3.1.0",
- "@jridgewell/sourcemap-codec": "^1.4.14"
- }
- },
- "node_modules/@mediapipe/tasks-vision": {
- "version": "0.10.17",
- "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz",
- "integrity": "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==",
- "license": "Apache-2.0"
- },
- "node_modules/@monogrid/gainmap-js": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/@monogrid/gainmap-js/-/gainmap-js-3.4.0.tgz",
- "integrity": "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==",
- "license": "MIT",
- "dependencies": {
- "promise-worker-transferable": "^1.0.4"
- },
- "peerDependencies": {
- "three": ">= 0.159.0"
- }
- },
- "node_modules/@napi-rs/wasm-runtime": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz",
- "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@tybys/wasm-util": "^0.10.1"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Brooooooklyn"
- },
- "peerDependencies": {
- "@emnapi/core": "^1.7.1",
- "@emnapi/runtime": "^1.7.1"
- }
- },
- "node_modules/@oxc-project/types": {
- "version": "0.128.0",
- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.128.0.tgz",
- "integrity": "sha512-huv1Y/LzBJkBVHt3OlC7u0zHBW9qXf1FdD7sGmc1rXc2P1mTwHssYv7jyGx5KAACSCH+9B3Bhn6Z9luHRvf7pQ==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/Boshen"
- }
- },
- "node_modules/@react-three/drei": {
- "version": "10.7.7",
- "resolved": "https://registry.npmjs.org/@react-three/drei/-/drei-10.7.7.tgz",
- "integrity": "sha512-ff+J5iloR0k4tC++QtD/j9u3w5fzfgFAWDtAGQah9pF2B1YgOq/5JxqY0/aVoQG5r3xSZz0cv5tk2YuBob4xEQ==",
- "license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.26.0",
- "@mediapipe/tasks-vision": "0.10.17",
- "@monogrid/gainmap-js": "^3.0.6",
- "@use-gesture/react": "^10.3.1",
- "camera-controls": "^3.1.0",
- "cross-env": "^7.0.3",
- "detect-gpu": "^5.0.56",
- "glsl-noise": "^0.0.0",
- "hls.js": "^1.5.17",
- "maath": "^0.10.8",
- "meshline": "^3.3.1",
- "stats-gl": "^2.2.8",
- "stats.js": "^0.17.0",
- "suspend-react": "^0.1.3",
- "three-mesh-bvh": "^0.8.3",
- "three-stdlib": "^2.35.6",
- "troika-three-text": "^0.52.4",
- "tunnel-rat": "^0.1.2",
- "use-sync-external-store": "^1.4.0",
- "utility-types": "^3.11.0",
- "zustand": "^5.0.1"
- },
- "peerDependencies": {
- "@react-three/fiber": "^9.0.0",
- "react": "^19",
- "react-dom": "^19",
- "three": ">=0.159"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@react-three/fiber": {
- "version": "9.6.1",
- "resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-9.6.1.tgz",
- "integrity": "sha512-zF0rsKcVYpcJwbFEnv2HkHX9cvOEgsfQo/X8lwmR2dn13S4qEQJXir9fxf5js2LQFoXqxOY7MDkOkYx2uZ4gSg==",
- "license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.17.8",
- "@types/webxr": "*",
- "base64-js": "^1.5.1",
- "buffer": "^6.0.3",
- "its-fine": "^2.0.0",
- "react-use-measure": "^2.1.7",
- "scheduler": "^0.27.0",
- "suspend-react": "^0.1.3",
- "use-sync-external-store": "^1.4.0",
- "zustand": "^5.0.3"
- },
- "peerDependencies": {
- "expo": ">=43.0",
- "expo-asset": ">=8.4",
- "expo-file-system": ">=11.0",
- "expo-gl": ">=11.0",
- "react": ">=19 <19.3",
- "react-dom": ">=19 <19.3",
- "react-native": ">=0.78",
- "three": ">=0.156"
- },
- "peerDependenciesMeta": {
- "expo": {
- "optional": true
- },
- "expo-asset": {
- "optional": true
- },
- "expo-file-system": {
- "optional": true
- },
- "expo-gl": {
- "optional": true
- },
- "react-dom": {
- "optional": true
- },
- "react-native": {
- "optional": true
- }
- }
- },
- "node_modules/@react-three/rapier": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@react-three/rapier/-/rapier-2.2.0.tgz",
- "integrity": "sha512-mVsqbKXlGZoN+XrqdhzFZUQmy8pibEOVzl4k7LC+LHe84bQnYBSagy1Hvbda6bL1PJDdTFyiDiBk5buKFinNIQ==",
- "dependencies": {
- "@dimforge/rapier3d-compat": "0.19.2",
- "suspend-react": "^0.1.3",
- "three-stdlib": "^2.35.12"
- },
- "peerDependencies": {
- "@react-three/fiber": "^9.0.4",
- "react": "^19",
- "three": ">=0.159.0"
- }
- },
- "node_modules/@react-three/rapier/node_modules/@dimforge/rapier3d-compat": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.19.2.tgz",
- "integrity": "sha512-AZHL1jqUF55QJkJyU1yKeh4ImX2J93bVLIezT1+o0FZqTix6O06MOaqpKoJ4MmbDCsoZmwO+qc471/SDMDm2AA==",
- "license": "Apache-2.0"
- },
- "node_modules/@rolldown/binding-android-arm64": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.18.tgz",
- "integrity": "sha512-lIDyUAfD7U3+BWKzdxMbJcsYHuqXqmGz40aeRqvuAm3y5TkJSYTBW2RDrn65DJFPQqVjUAUqq5uz8urzQ8aBdQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-darwin-arm64": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.18.tgz",
- "integrity": "sha512-apJq2ktnGp27nSInMR5Vcj8kY6xJzDAvfdIFlpDcAK/w4cDO58qVoi1YQsES/SKiFNge/6e4CUzgjfHduYqWpQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-darwin-x64": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.18.tgz",
- "integrity": "sha512-5Ofot8xbs+pxRHJqm9/9N/4sTQOvdrwEsmPE9pdLEEoAbdZtG6F2LMDfO1sp6ZAtXJuJV/21ew2srq3W8NXB5g==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-freebsd-x64": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.18.tgz",
- "integrity": "sha512-7h8eeOTT1eyqJyx64BFCnWZpNm486hGWt2sqeLLgDxA0xI1oGZ9H7gK1S85uNGmBhkdPwa/6reTxfFFKvIsebw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-arm-gnueabihf": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.18.tgz",
- "integrity": "sha512-eRcm/HVt9U/JFu5RKAEKwGQYtDCKWLiaH6wOnsSEp6NMBb/3Os8LgHZlNyzMpFVNmiiMFlfb2zEnebfzJrHFmg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-arm64-gnu": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.18.tgz",
- "integrity": "sha512-SOrT/cT4ukTmgnrEz/Hg3m7LBnuCLW9psDeMKrimRWY4I8DmnO7Lco8W2vtqPmMkbVu8iJ+g4GFLVLLOVjJ9DQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-arm64-musl": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.18.tgz",
- "integrity": "sha512-QWjdxN1HJCpBTAcZ5N5F7wju3gVPzRzSpmGzx7na0c/1qpN9CFil+xt+l9lV/1M6/gqHSNXCiqPfwhVJPeLnug==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-ppc64-gnu": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.18.tgz",
- "integrity": "sha512-ugCOyj7a4d9h3q9B+wXmf6g3a68UsjGh6dob5DHevHGMwDUbhsYNbSPxJsENcIttJZ9jv7qGM2UesLw5jqIhdg==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-s390x-gnu": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.18.tgz",
- "integrity": "sha512-kKWRhbsotpXkGbcd5dllUWg5gEXcDAa8u5YnP9AV5DYNbvJHGzzuwv7dpmhc8NqKMJldl0a+x76IHbspEpEmdA==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-x64-gnu": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.18.tgz",
- "integrity": "sha512-uCo8ElcCIAMyYAZyuIZ81oFkhTSIllNvUCHCAlbhlN4ji3uC28h7IIdlXyIvGO7HsuqnV9p3rD/bpH7XhIyhRw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-x64-musl": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.18.tgz",
- "integrity": "sha512-XNOQZtuE6yUIvx4rwGemwh8kpL1xvU41FXy/s9K7T/3JVcqGzo3NfKM2HrbrGgfPYGFW42f07Wk++aOC6B9NWA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-openharmony-arm64": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.18.tgz",
- "integrity": "sha512-tSn/kzrfa7tNOXr7sEacDBN4YsIqTyLqh45IO0nHDwtpKIDNDJr+VFojt+4klSpChxB29JLyduSsE0MKEwa65A==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openharmony"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-wasm32-wasi": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.18.tgz",
- "integrity": "sha512-+J9YGmc+czgqlhYmwun3S3O0FIZhsH8ep2456xwjAdIOmuJxM7xz4P4PtrxU+Bz17a/5bqPA8o3HAAoX0teUdg==",
- "cpu": [
- "wasm32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@emnapi/core": "1.10.0",
- "@emnapi/runtime": "1.10.0",
- "@napi-rs/wasm-runtime": "^1.1.4"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-win32-arm64-msvc": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.18.tgz",
- "integrity": "sha512-zsu47DgU0FQzSwi6sU9dZoEdUv7pc1AptSEz/Z8HBg54sV0Pbs3N0+CrIbTsgiu6EyoaNN9CHboqbLaz9lhOyQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-win32-x64-msvc": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.18.tgz",
- "integrity": "sha512-7H+3yqGgmnlDTRRhw/xpYY9J1kf4GC681nVc4GqKhExZTDrVVrV2tsOR9kso0fvgBdcTCcQShx4SLLoHgaLwhg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/pluginutils": {
- "version": "1.0.0-rc.7",
- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
- "integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@tailwindcss/node": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz",
- "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/remapping": "^2.3.5",
- "enhanced-resolve": "^5.21.0",
- "jiti": "^2.6.1",
- "lightningcss": "1.32.0",
- "magic-string": "^0.30.21",
- "source-map-js": "^1.2.1",
- "tailwindcss": "4.3.0"
- }
- },
- "node_modules/@tailwindcss/oxide": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz",
- "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 20"
- },
- "optionalDependencies": {
- "@tailwindcss/oxide-android-arm64": "4.3.0",
- "@tailwindcss/oxide-darwin-arm64": "4.3.0",
- "@tailwindcss/oxide-darwin-x64": "4.3.0",
- "@tailwindcss/oxide-freebsd-x64": "4.3.0",
- "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0",
- "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0",
- "@tailwindcss/oxide-linux-arm64-musl": "4.3.0",
- "@tailwindcss/oxide-linux-x64-gnu": "4.3.0",
- "@tailwindcss/oxide-linux-x64-musl": "4.3.0",
- "@tailwindcss/oxide-wasm32-wasi": "4.3.0",
- "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0",
- "@tailwindcss/oxide-win32-x64-msvc": "4.3.0"
- }
- },
- "node_modules/@tailwindcss/oxide-android-arm64": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz",
- "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-darwin-arm64": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz",
- "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-darwin-x64": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz",
- "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-freebsd-x64": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz",
- "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz",
- "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz",
- "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz",
- "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz",
- "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-x64-musl": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz",
- "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-wasm32-wasi": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz",
- "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==",
- "bundleDependencies": [
- "@napi-rs/wasm-runtime",
- "@emnapi/core",
- "@emnapi/runtime",
- "@tybys/wasm-util",
- "@emnapi/wasi-threads",
- "tslib"
- ],
- "cpu": [
- "wasm32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@emnapi/core": "^1.10.0",
- "@emnapi/runtime": "^1.10.0",
- "@emnapi/wasi-threads": "^1.2.1",
- "@napi-rs/wasm-runtime": "^1.1.4",
- "@tybys/wasm-util": "^0.10.1",
- "tslib": "^2.8.1"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz",
- "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz",
- "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/vite": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz",
- "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@tailwindcss/node": "4.3.0",
- "@tailwindcss/oxide": "4.3.0",
- "tailwindcss": "4.3.0"
- },
- "peerDependencies": {
- "vite": "^5.2.0 || ^6 || ^7 || ^8"
- }
- },
- "node_modules/@tweenjs/tween.js": {
- "version": "23.1.3",
- "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
- "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",
- "license": "MIT"
- },
- "node_modules/@tybys/wasm-util": {
- "version": "0.10.2",
- "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz",
- "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "tslib": "^2.4.0"
- }
- },
- "node_modules/@types/draco3d": {
- "version": "1.4.10",
- "resolved": "https://registry.npmjs.org/@types/draco3d/-/draco3d-1.4.10.tgz",
- "integrity": "sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==",
- "license": "MIT"
- },
- "node_modules/@types/esrecurse": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",
- "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/estree": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
- "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/json-schema": {
- "version": "7.0.15",
- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/offscreencanvas": {
- "version": "2019.7.3",
- "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz",
- "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==",
- "license": "MIT"
- },
- "node_modules/@types/react": {
- "version": "19.2.14",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
- "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
- "license": "MIT",
- "dependencies": {
- "csstype": "^3.2.2"
- }
- },
- "node_modules/@types/react-dom": {
- "version": "19.2.3",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
- "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "^19.2.0"
- }
- },
- "node_modules/@types/react-reconciler": {
- "version": "0.28.9",
- "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz",
- "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==",
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "*"
- }
- },
- "node_modules/@types/stats.js": {
- "version": "0.17.4",
- "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",
- "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",
- "license": "MIT"
- },
- "node_modules/@types/three": {
- "version": "0.184.1",
- "resolved": "https://registry.npmjs.org/@types/three/-/three-0.184.1.tgz",
- "integrity": "sha512-6q4VdiqVsrTRqmk62/BnlcAvIrnDM0zf2ZDVKI5kZiniWrSaOHaQzmbp+BNzoggc/8tgW412pL//wZIxu2PPTA==",
- "license": "MIT",
- "dependencies": {
- "@dimforge/rapier3d-compat": "~0.12.0",
- "@tweenjs/tween.js": "~23.1.3",
- "@types/stats.js": "*",
- "@types/webxr": ">=0.5.17",
- "fflate": "~0.8.2",
- "meshoptimizer": "~1.1.1"
- }
- },
- "node_modules/@types/webxr": {
- "version": "0.5.24",
- "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",
- "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",
- "license": "MIT"
- },
- "node_modules/@use-gesture/core": {
- "version": "10.3.1",
- "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz",
- "integrity": "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==",
- "license": "MIT"
- },
- "node_modules/@use-gesture/react": {
- "version": "10.3.1",
- "resolved": "https://registry.npmjs.org/@use-gesture/react/-/react-10.3.1.tgz",
- "integrity": "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g==",
- "license": "MIT",
- "dependencies": {
- "@use-gesture/core": "10.3.1"
- },
- "peerDependencies": {
- "react": ">= 16.8.0"
- }
- },
- "node_modules/@vitejs/plugin-react": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz",
- "integrity": "sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@rolldown/pluginutils": "1.0.0-rc.7"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "peerDependencies": {
- "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",
- "babel-plugin-react-compiler": "^1.0.0",
- "vite": "^8.0.0"
- },
- "peerDependenciesMeta": {
- "@rolldown/plugin-babel": {
- "optional": true
- },
- "babel-plugin-react-compiler": {
- "optional": true
- }
- }
- },
- "node_modules/acorn": {
- "version": "8.16.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
- "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "acorn": "bin/acorn"
- },
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/acorn-jsx": {
- "version": "5.3.2",
- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
- }
- },
- "node_modules/ajv": {
- "version": "6.15.0",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
- "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "fast-deep-equal": "^3.1.1",
- "fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.4.1",
- "uri-js": "^4.2.2"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/epoberezkin"
- }
- },
- "node_modules/balanced-match": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
- "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "18 || 20 || >=22"
- }
- },
- "node_modules/base64-js": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT"
- },
- "node_modules/baseline-browser-mapping": {
- "version": "2.10.27",
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.27.tgz",
- "integrity": "sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==",
- "dev": true,
- "license": "Apache-2.0",
- "bin": {
- "baseline-browser-mapping": "dist/cli.cjs"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/bidi-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",
- "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",
- "license": "MIT",
- "dependencies": {
- "require-from-string": "^2.0.2"
- }
- },
- "node_modules/brace-expansion": {
- "version": "5.0.6",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
- "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "balanced-match": "^4.0.2"
- },
- "engines": {
- "node": "18 || 20 || >=22"
- }
- },
- "node_modules/browserslist": {
- "version": "4.28.2",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
- "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/browserslist"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "baseline-browser-mapping": "^2.10.12",
- "caniuse-lite": "^1.0.30001782",
- "electron-to-chromium": "^1.5.328",
- "node-releases": "^2.0.36",
- "update-browserslist-db": "^1.2.3"
- },
- "bin": {
- "browserslist": "cli.js"
- },
- "engines": {
- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
- }
- },
- "node_modules/buffer": {
- "version": "6.0.3",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
- "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "base64-js": "^1.3.1",
- "ieee754": "^1.2.1"
- }
- },
- "node_modules/camera-controls": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-3.1.0.tgz",
- "integrity": "sha512-w5oULNpijgTRH0ARFJJ0R5ct1nUM3R3WP7/b8A6j9uTGpRfnsypc/RBMPQV8JQDPayUe37p/TZZY1PcUr4czOQ==",
- "license": "MIT",
- "engines": {
- "node": ">=20.11.0",
- "npm": ">=10.8.2"
- },
- "peerDependencies": {
- "three": ">=0.126.1"
- }
- },
- "node_modules/caniuse-lite": {
- "version": "1.0.30001792",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001792.tgz",
- "integrity": "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "CC-BY-4.0"
- },
- "node_modules/convert-source-map": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/cookie": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
- "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/cors": {
- "version": "2.8.6",
- "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
- "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
- "license": "MIT",
- "dependencies": {
- "object-assign": "^4",
- "vary": "^1"
- },
- "engines": {
- "node": ">= 0.10"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/cross-env": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
- "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
- "license": "MIT",
- "dependencies": {
- "cross-spawn": "^7.0.1"
- },
- "bin": {
- "cross-env": "src/bin/cross-env.js",
- "cross-env-shell": "src/bin/cross-env-shell.js"
- },
- "engines": {
- "node": ">=10.14",
- "npm": ">=6",
- "yarn": ">=1"
- }
- },
- "node_modules/cross-spawn": {
- "version": "7.0.6",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
- "license": "MIT",
- "dependencies": {
- "path-key": "^3.1.0",
- "shebang-command": "^2.0.0",
- "which": "^2.0.1"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/csstype": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "license": "MIT"
- },
- "node_modules/debug": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ms": "^2.1.3"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/deep-is": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/detect-gpu": {
- "version": "5.0.70",
- "resolved": "https://registry.npmjs.org/detect-gpu/-/detect-gpu-5.0.70.tgz",
- "integrity": "sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==",
- "license": "MIT",
- "dependencies": {
- "webgl-constants": "^1.1.1"
- }
- },
- "node_modules/detect-libc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/dotenv": {
- "version": "17.4.2",
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
- "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://dotenvx.com"
- }
- },
- "node_modules/draco3d": {
- "version": "1.5.7",
- "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz",
- "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==",
- "license": "Apache-2.0"
- },
- "node_modules/electron-to-chromium": {
- "version": "1.5.352",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.352.tgz",
- "integrity": "sha512-9wHk8x6dyuimoe18EdiDPWKExNdxYqo4fn4FwOVVper6RxT3cmpBwBkWWfSOCYJjQdIco/nPhJhNLmn4Ufg1Yg==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/enhanced-resolve": {
- "version": "5.21.3",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.3.tgz",
- "integrity": "sha512-QyL119InA+XXEkNLNTPCXPugSvOfhwv0JOlGNzvxs0hZaiHLNvXSpudUWsOlsXGWJh8G6ckCScEkVHfX3kw/2Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "graceful-fs": "^4.2.4",
- "tapable": "^2.3.3"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/escalade": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/escape-string-regexp": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/eslint": {
- "version": "10.3.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.3.0.tgz",
- "integrity": "sha512-XbEXaRva5cF0ZQB8w6MluHA0kZZfV2DuCMJ3ozyEOHLwDpZX2Lmm/7Pp0xdJmI0GL1W05VH5VwIFHEm1Vcw2gw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@eslint-community/eslint-utils": "^4.8.0",
- "@eslint-community/regexpp": "^4.12.2",
- "@eslint/config-array": "^0.23.5",
- "@eslint/config-helpers": "^0.5.5",
- "@eslint/core": "^1.2.1",
- "@eslint/plugin-kit": "^0.7.1",
- "@humanfs/node": "^0.16.6",
- "@humanwhocodes/module-importer": "^1.0.1",
- "@humanwhocodes/retry": "^0.4.2",
- "@types/estree": "^1.0.6",
- "ajv": "^6.14.0",
- "cross-spawn": "^7.0.6",
- "debug": "^4.3.2",
- "escape-string-regexp": "^4.0.0",
- "eslint-scope": "^9.1.2",
- "eslint-visitor-keys": "^5.0.1",
- "espree": "^11.2.0",
- "esquery": "^1.7.0",
- "esutils": "^2.0.2",
- "fast-deep-equal": "^3.1.3",
- "file-entry-cache": "^8.0.0",
- "find-up": "^5.0.0",
- "glob-parent": "^6.0.2",
- "ignore": "^5.2.0",
- "imurmurhash": "^0.1.4",
- "is-glob": "^4.0.0",
- "json-stable-stringify-without-jsonify": "^1.0.1",
- "minimatch": "^10.2.4",
- "natural-compare": "^1.4.0",
- "optionator": "^0.9.3"
- },
- "bin": {
- "eslint": "bin/eslint.js"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://eslint.org/donate"
- },
- "peerDependencies": {
- "jiti": "*"
- },
- "peerDependenciesMeta": {
- "jiti": {
- "optional": true
- }
- }
- },
- "node_modules/eslint-plugin-react-hooks": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
- "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/core": "^7.24.4",
- "@babel/parser": "^7.24.4",
- "hermes-parser": "^0.25.1",
- "zod": "^3.25.0 || ^4.0.0",
- "zod-validation-error": "^3.5.0 || ^4.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
- }
- },
- "node_modules/eslint-plugin-react-refresh": {
- "version": "0.5.2",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz",
- "integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "eslint": "^9 || ^10"
- }
- },
- "node_modules/eslint-scope": {
- "version": "9.1.2",
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",
- "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",
- "dev": true,
- "license": "BSD-2-Clause",
- "dependencies": {
- "@types/esrecurse": "^4.3.1",
- "@types/estree": "^1.0.8",
- "esrecurse": "^4.3.0",
- "estraverse": "^5.2.0"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/eslint-visitor-keys": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
- "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/espree": {
- "version": "11.2.0",
- "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
- "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",
- "dev": true,
- "license": "BSD-2-Clause",
- "dependencies": {
- "acorn": "^8.16.0",
- "acorn-jsx": "^5.3.2",
- "eslint-visitor-keys": "^5.0.1"
- },
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/esquery": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
- "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
- "dev": true,
- "license": "BSD-3-Clause",
- "dependencies": {
- "estraverse": "^5.1.0"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
- "node_modules/esrecurse": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
- "dev": true,
- "license": "BSD-2-Clause",
- "dependencies": {
- "estraverse": "^5.2.0"
- },
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/estraverse": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
- "dev": true,
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/esutils": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
- "dev": true,
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/fast-deep-equal": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/fast-json-stable-stringify": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/fast-levenshtein": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/fdir": {
- "version": "6.5.0",
- "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
- "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12.0.0"
- },
- "peerDependencies": {
- "picomatch": "^3 || ^4"
- },
- "peerDependenciesMeta": {
- "picomatch": {
- "optional": true
- }
- }
- },
- "node_modules/fflate": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",
- "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",
- "license": "MIT"
- },
- "node_modules/file-entry-cache": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
- "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "flat-cache": "^4.0.0"
- },
- "engines": {
- "node": ">=16.0.0"
- }
- },
- "node_modules/find-up": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "locate-path": "^6.0.0",
- "path-exists": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/flat-cache": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
- "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "flatted": "^3.2.9",
- "keyv": "^4.5.4"
- },
- "engines": {
- "node": ">=16"
- }
- },
- "node_modules/flatted": {
- "version": "3.4.2",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
- "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/gensync": {
- "version": "1.0.0-beta.2",
- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/glob-parent": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
- "dev": true,
- "license": "ISC",
- "dependencies": {
- "is-glob": "^4.0.3"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/globals": {
- "version": "17.6.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz",
- "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/glsl-noise": {
- "version": "0.0.0",
- "resolved": "https://registry.npmjs.org/glsl-noise/-/glsl-noise-0.0.0.tgz",
- "integrity": "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==",
- "license": "MIT"
- },
- "node_modules/graceful-fs": {
- "version": "4.2.11",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/hermes-estree": {
- "version": "0.25.1",
- "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
- "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/hermes-parser": {
- "version": "0.25.1",
- "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
- "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "hermes-estree": "0.25.1"
- }
- },
- "node_modules/hls.js": {
- "version": "1.6.16",
- "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.6.16.tgz",
- "integrity": "sha512-VSIRpLfRwlAAdGL4wiTucx2ScRipo0ed1FBatWkyt832jC4CReKstga6yIhYVwGu9LOBjuX9wzmRMeQdBJtzEA==",
- "license": "Apache-2.0"
- },
- "node_modules/ieee754": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "BSD-3-Clause"
- },
- "node_modules/ignore": {
- "version": "5.3.2",
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
- "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 4"
- }
- },
- "node_modules/immediate": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
- "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
- "license": "MIT"
- },
- "node_modules/imurmurhash": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.8.19"
- }
- },
- "node_modules/is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-glob": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "is-extglob": "^2.1.1"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-promise": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
- "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",
- "license": "MIT"
- },
- "node_modules/isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
- "license": "ISC"
- },
- "node_modules/its-fine": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/its-fine/-/its-fine-2.0.0.tgz",
- "integrity": "sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==",
- "license": "MIT",
- "dependencies": {
- "@types/react-reconciler": "^0.28.9"
- },
- "peerDependencies": {
- "react": "^19.0.0"
- }
- },
- "node_modules/jiti": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
- "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "jiti": "lib/jiti-cli.mjs"
- }
- },
- "node_modules/js-tokens": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/jsesc": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "jsesc": "bin/jsesc"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/json-buffer": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/json-schema-traverse": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/json-stable-stringify-without-jsonify": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/json5": {
- "version": "2.2.3",
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "json5": "lib/cli.js"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/keyv": {
- "version": "4.5.4",
- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "json-buffer": "3.0.1"
- }
- },
- "node_modules/levn": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "prelude-ls": "^1.2.1",
- "type-check": "~0.4.0"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/lie": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",
- "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",
- "license": "MIT",
- "dependencies": {
- "immediate": "~3.0.5"
- }
- },
- "node_modules/lightningcss": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
- "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
- "dev": true,
- "license": "MPL-2.0",
- "dependencies": {
- "detect-libc": "^2.0.3"
- },
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- },
- "optionalDependencies": {
- "lightningcss-android-arm64": "1.32.0",
- "lightningcss-darwin-arm64": "1.32.0",
- "lightningcss-darwin-x64": "1.32.0",
- "lightningcss-freebsd-x64": "1.32.0",
- "lightningcss-linux-arm-gnueabihf": "1.32.0",
- "lightningcss-linux-arm64-gnu": "1.32.0",
- "lightningcss-linux-arm64-musl": "1.32.0",
- "lightningcss-linux-x64-gnu": "1.32.0",
- "lightningcss-linux-x64-musl": "1.32.0",
- "lightningcss-win32-arm64-msvc": "1.32.0",
- "lightningcss-win32-x64-msvc": "1.32.0"
- }
- },
- "node_modules/lightningcss-android-arm64": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
- "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-darwin-arm64": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
- "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-darwin-x64": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
- "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-freebsd-x64": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
- "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-arm-gnueabihf": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
- "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-arm64-gnu": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
- "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-arm64-musl": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
- "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-x64-gnu": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
- "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-x64-musl": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
- "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-win32-arm64-msvc": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
- "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-win32-x64-msvc": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
- "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/locate-path": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "p-locate": "^5.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/lru-cache": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
- "dev": true,
- "license": "ISC",
- "dependencies": {
- "yallist": "^3.0.2"
- }
- },
- "node_modules/maath": {
- "version": "0.10.8",
- "resolved": "https://registry.npmjs.org/maath/-/maath-0.10.8.tgz",
- "integrity": "sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==",
- "license": "MIT",
- "peerDependencies": {
- "@types/three": ">=0.134.0",
- "three": ">=0.134.0"
- }
- },
- "node_modules/magic-string": {
- "version": "0.30.21",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.5"
- }
- },
- "node_modules/meshline": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/meshline/-/meshline-3.3.1.tgz",
- "integrity": "sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==",
- "license": "MIT",
- "peerDependencies": {
- "three": ">=0.137"
- }
- },
- "node_modules/meshoptimizer": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",
- "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",
- "license": "MIT"
- },
- "node_modules/minimatch": {
- "version": "10.2.5",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
- "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
- "dev": true,
- "license": "BlueOak-1.0.0",
- "dependencies": {
- "brace-expansion": "^5.0.5"
- },
- "engines": {
- "node": "18 || 20 || >=22"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/nanoid": {
- "version": "3.3.12",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",
- "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
- "node_modules/natural-compare": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/nipplejs": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/nipplejs/-/nipplejs-1.0.2.tgz",
- "integrity": "sha512-/6gzGs1jJxtRC2i4kw6yAeMB7N0m5M+HSMmRdky8yoBUJOyNyDxsUves5DSgLGdhGE7IBsYCu1wY+dnJZz0yUQ==",
- "license": "MIT"
- },
- "node_modules/node-releases": {
- "version": "2.0.38",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz",
- "integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/optionator": {
- "version": "0.9.4",
- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
- "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "deep-is": "^0.1.3",
- "fast-levenshtein": "^2.0.6",
- "levn": "^0.4.1",
- "prelude-ls": "^1.2.1",
- "type-check": "^0.4.0",
- "word-wrap": "^1.2.5"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/p-limit": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "yocto-queue": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/p-locate": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "p-limit": "^3.0.2"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
- "license": "MIT",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/picocolors": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/picomatch": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/postcss": {
- "version": "8.5.14",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz",
- "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "nanoid": "^3.3.11",
- "picocolors": "^1.1.1",
- "source-map-js": "^1.2.1"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- }
- },
- "node_modules/potpack": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz",
- "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==",
- "license": "ISC"
- },
- "node_modules/prelude-ls": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
- "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/promise-worker-transferable": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/promise-worker-transferable/-/promise-worker-transferable-1.0.4.tgz",
- "integrity": "sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw==",
- "license": "Apache-2.0",
- "dependencies": {
- "is-promise": "^2.1.0",
- "lie": "^3.0.2"
- }
- },
- "node_modules/punycode": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
- "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/react": {
- "version": "19.2.6",
- "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz",
- "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/react-dom": {
- "version": "19.2.6",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz",
- "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==",
- "license": "MIT",
- "dependencies": {
- "scheduler": "^0.27.0"
- },
- "peerDependencies": {
- "react": "^19.2.6"
- }
- },
- "node_modules/react-router": {
- "version": "7.15.0",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.15.0.tgz",
- "integrity": "sha512-HW9vYwuM8f4yx66Izy8xfrzCM+SBJluoZcCbww9A1TySax11S5Vgw6fi3ZjMONw9J4gQwngL7PzkyIpJJpJ7RQ==",
- "license": "MIT",
- "dependencies": {
- "cookie": "^1.0.1",
- "set-cookie-parser": "^2.6.0"
- },
- "engines": {
- "node": ">=20.0.0"
- },
- "peerDependencies": {
- "react": ">=18",
- "react-dom": ">=18"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/react-router-dom": {
- "version": "7.15.0",
- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.15.0.tgz",
- "integrity": "sha512-VcrVg64Fo8nwBvDscajG8gRTLIuTC6N50nb22l2HOOV4PTOHgoGp8mUjy9wLiHYoYTSYI36tUnXZgasSRFZorQ==",
- "license": "MIT",
- "dependencies": {
- "react-router": "7.15.0"
- },
- "engines": {
- "node": ">=20.0.0"
- },
- "peerDependencies": {
- "react": ">=18",
- "react-dom": ">=18"
- }
- },
- "node_modules/react-use-measure": {
- "version": "2.1.7",
- "resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz",
- "integrity": "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==",
- "license": "MIT",
- "peerDependencies": {
- "react": ">=16.13",
- "react-dom": ">=16.13"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/require-from-string": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
- "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/rolldown": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.18.tgz",
- "integrity": "sha512-phmyKBpuBdRYDf4hgyynGAYn/rDDe+iZXKVJ7WX5b1zQzpLkP5oJRPGsfJuHdzPMlyyEO/4sPW6yfSx2gf7lVg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@oxc-project/types": "=0.128.0",
- "@rolldown/pluginutils": "1.0.0-rc.18"
- },
- "bin": {
- "rolldown": "bin/cli.mjs"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "optionalDependencies": {
- "@rolldown/binding-android-arm64": "1.0.0-rc.18",
- "@rolldown/binding-darwin-arm64": "1.0.0-rc.18",
- "@rolldown/binding-darwin-x64": "1.0.0-rc.18",
- "@rolldown/binding-freebsd-x64": "1.0.0-rc.18",
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.18",
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.18",
- "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.18",
- "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.18",
- "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.18",
- "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.18",
- "@rolldown/binding-linux-x64-musl": "1.0.0-rc.18",
- "@rolldown/binding-openharmony-arm64": "1.0.0-rc.18",
- "@rolldown/binding-wasm32-wasi": "1.0.0-rc.18",
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.18",
- "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.18"
- }
- },
- "node_modules/rolldown/node_modules/@rolldown/pluginutils": {
- "version": "1.0.0-rc.18",
- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.18.tgz",
- "integrity": "sha512-CUY5Mnhe64xQBGZEEXQ5WyZwsc1JU3vAZLIxtrsBt3LO6UOb+C8GunVKqe9sT8NeWb4lqSaoJtp2xo6GxT1MNw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/scheduler": {
- "version": "0.27.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
- "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
- "license": "MIT"
- },
- "node_modules/semver": {
- "version": "6.3.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
- "dev": true,
- "license": "ISC",
- "bin": {
- "semver": "bin/semver.js"
- }
- },
- "node_modules/set-cookie-parser": {
- "version": "2.7.2",
- "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
- "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
- "license": "MIT"
- },
- "node_modules/shebang-command": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
- "license": "MIT",
- "dependencies": {
- "shebang-regex": "^3.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/shebang-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
- "license": "MIT",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/source-map-js": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/stats-gl": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/stats-gl/-/stats-gl-2.4.2.tgz",
- "integrity": "sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==",
- "license": "MIT",
- "dependencies": {
- "@types/three": "*",
- "three": "^0.170.0"
- },
- "peerDependencies": {
- "@types/three": "*",
- "three": "*"
- }
- },
- "node_modules/stats-gl/node_modules/three": {
- "version": "0.170.0",
- "resolved": "https://registry.npmjs.org/three/-/three-0.170.0.tgz",
- "integrity": "sha512-FQK+LEpYc0fBD+J8g6oSEyyNzjp+Q7Ks1C568WWaoMRLW+TkNNWmenWeGgJjV105Gd+p/2ql1ZcjYvNiPZBhuQ==",
- "license": "MIT"
- },
- "node_modules/stats.js": {
- "version": "0.17.0",
- "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz",
- "integrity": "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==",
- "license": "MIT"
- },
- "node_modules/suspend-react": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",
- "integrity": "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==",
- "license": "MIT",
- "peerDependencies": {
- "react": ">=17.0"
- }
- },
- "node_modules/tailwindcss": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz",
- "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/tapable": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
- "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/webpack"
- }
- },
- "node_modules/three": {
- "version": "0.184.0",
- "resolved": "https://registry.npmjs.org/three/-/three-0.184.0.tgz",
- "integrity": "sha512-wtTRjG92pM5eUg/KuUnHsqSAlPM296brTOcLgMRqEeylYTh/CdtvKUvCyyCQTzFuStieWxvZb8mVTMvdPyUpxg==",
- "license": "MIT",
- "peer": true
- },
- "node_modules/three-mesh-bvh": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/three-mesh-bvh/-/three-mesh-bvh-0.8.3.tgz",
- "integrity": "sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg==",
- "license": "MIT",
- "peerDependencies": {
- "three": ">= 0.159.0"
- }
- },
- "node_modules/three-stdlib": {
- "version": "2.36.1",
- "resolved": "https://registry.npmjs.org/three-stdlib/-/three-stdlib-2.36.1.tgz",
- "integrity": "sha512-XyGQrFmNQ5O/IoKm556ftwKsBg11TIb301MB5dWNicziQBEs2g3gtOYIf7pFiLa0zI2gUwhtCjv9fmjnxKZ1Cg==",
- "license": "MIT",
- "dependencies": {
- "@types/draco3d": "^1.4.0",
- "@types/offscreencanvas": "^2019.6.4",
- "@types/webxr": "^0.5.2",
- "draco3d": "^1.4.1",
- "fflate": "^0.6.9",
- "potpack": "^1.0.1"
- },
- "peerDependencies": {
- "three": ">=0.128.0"
- }
- },
- "node_modules/three-stdlib/node_modules/fflate": {
- "version": "0.6.10",
- "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz",
- "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==",
- "license": "MIT"
- },
- "node_modules/tinyglobby": {
- "version": "0.2.16",
- "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
- "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "fdir": "^6.5.0",
- "picomatch": "^4.0.4"
- },
- "engines": {
- "node": ">=12.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/SuperchupuDev"
- }
- },
- "node_modules/troika-three-text": {
- "version": "0.52.4",
- "resolved": "https://registry.npmjs.org/troika-three-text/-/troika-three-text-0.52.4.tgz",
- "integrity": "sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg==",
- "license": "MIT",
- "dependencies": {
- "bidi-js": "^1.0.2",
- "troika-three-utils": "^0.52.4",
- "troika-worker-utils": "^0.52.0",
- "webgl-sdf-generator": "1.1.1"
- },
- "peerDependencies": {
- "three": ">=0.125.0"
- }
- },
- "node_modules/troika-three-utils": {
- "version": "0.52.4",
- "resolved": "https://registry.npmjs.org/troika-three-utils/-/troika-three-utils-0.52.4.tgz",
- "integrity": "sha512-NORAStSVa/BDiG52Mfudk4j1FG4jC4ILutB3foPnfGbOeIs9+G5vZLa0pnmnaftZUGm4UwSoqEpWdqvC7zms3A==",
- "license": "MIT",
- "peerDependencies": {
- "three": ">=0.125.0"
- }
- },
- "node_modules/troika-worker-utils": {
- "version": "0.52.0",
- "resolved": "https://registry.npmjs.org/troika-worker-utils/-/troika-worker-utils-0.52.0.tgz",
- "integrity": "sha512-W1CpvTHykaPH5brv5VHLfQo9D1OYuo0cSBEUQFFT/nBUzM8iD6Lq2/tgG/f1OelbAS1WtaTPQzE5uM49egnngw==",
- "license": "MIT"
- },
- "node_modules/tslib": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
- "dev": true,
- "license": "0BSD",
- "optional": true
- },
- "node_modules/tunnel-rat": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/tunnel-rat/-/tunnel-rat-0.1.2.tgz",
- "integrity": "sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ==",
- "license": "MIT",
- "dependencies": {
- "zustand": "^4.3.2"
- }
- },
- "node_modules/tunnel-rat/node_modules/zustand": {
- "version": "4.5.7",
- "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
- "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
- "license": "MIT",
- "dependencies": {
- "use-sync-external-store": "^1.2.2"
- },
- "engines": {
- "node": ">=12.7.0"
- },
- "peerDependencies": {
- "@types/react": ">=16.8",
- "immer": ">=9.0.6",
- "react": ">=16.8"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "immer": {
- "optional": true
- },
- "react": {
- "optional": true
- }
- }
- },
- "node_modules/type-check": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "prelude-ls": "^1.2.1"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/update-browserslist-db": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
- "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/browserslist"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "escalade": "^3.2.0",
- "picocolors": "^1.1.1"
- },
- "bin": {
- "update-browserslist-db": "cli.js"
- },
- "peerDependencies": {
- "browserslist": ">= 4.21.0"
- }
- },
- "node_modules/uri-js": {
- "version": "4.4.1",
- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
- "dev": true,
- "license": "BSD-2-Clause",
- "dependencies": {
- "punycode": "^2.1.0"
- }
- },
- "node_modules/use-sync-external-store": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
- "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
- "license": "MIT",
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
- }
- },
- "node_modules/utility-types": {
- "version": "3.11.0",
- "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz",
- "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==",
- "license": "MIT",
- "engines": {
- "node": ">= 4"
- }
- },
- "node_modules/vary": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/vite": {
- "version": "8.0.11",
- "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.11.tgz",
- "integrity": "sha512-Jz1mxtUBR5xTT65VOdJZUUeoyLtqljmFkiUXhPTLZka3RDc9vpi/xXkyrnsdRcm2lIi3l3GPMnAidTsEGIj3Ow==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "lightningcss": "^1.32.0",
- "picomatch": "^4.0.4",
- "postcss": "^8.5.14",
- "rolldown": "1.0.0-rc.18",
- "tinyglobby": "^0.2.16"
- },
- "bin": {
- "vite": "bin/vite.js"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "funding": {
- "url": "https://github.com/vitejs/vite?sponsor=1"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.3"
- },
- "peerDependencies": {
- "@types/node": "^20.19.0 || >=22.12.0",
- "@vitejs/devtools": "^0.1.18",
- "esbuild": "^0.27.0 || ^0.28.0",
- "jiti": ">=1.21.0",
- "less": "^4.0.0",
- "sass": "^1.70.0",
- "sass-embedded": "^1.70.0",
- "stylus": ">=0.54.8",
- "sugarss": "^5.0.0",
- "terser": "^5.16.0",
- "tsx": "^4.8.1",
- "yaml": "^2.4.2"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- },
- "@vitejs/devtools": {
- "optional": true
- },
- "esbuild": {
- "optional": true
- },
- "jiti": {
- "optional": true
- },
- "less": {
- "optional": true
- },
- "sass": {
- "optional": true
- },
- "sass-embedded": {
- "optional": true
- },
- "stylus": {
- "optional": true
- },
- "sugarss": {
- "optional": true
- },
- "terser": {
- "optional": true
- },
- "tsx": {
- "optional": true
- },
- "yaml": {
- "optional": true
- }
- }
- },
- "node_modules/webgl-constants": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/webgl-constants/-/webgl-constants-1.1.1.tgz",
- "integrity": "sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg=="
- },
- "node_modules/webgl-sdf-generator": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/webgl-sdf-generator/-/webgl-sdf-generator-1.1.1.tgz",
- "integrity": "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==",
- "license": "MIT"
- },
- "node_modules/which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "license": "ISC",
- "dependencies": {
- "isexe": "^2.0.0"
- },
- "bin": {
- "node-which": "bin/node-which"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/word-wrap": {
- "version": "1.2.5",
- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
- "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/yallist": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/yocto-queue": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/zod": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/colinhacks"
- }
- },
- "node_modules/zod-validation-error": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
- "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "zod": "^3.25.0 || ^4.0.0"
- }
- },
- "node_modules/zustand": {
- "version": "5.0.13",
- "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.13.tgz",
- "integrity": "sha512-efI2tVaVQPqtOh114loML/Z80Y4NP3yc+Ff0fYiZJPauNeWZeIp/bRFD7I9bfmCOYBh/PHxlglQ9+wvlwnPikQ==",
- "license": "MIT",
- "engines": {
- "node": ">=12.20.0"
- },
- "peerDependencies": {
- "@types/react": ">=18.0.0",
- "immer": ">=9.0.6",
- "react": ">=18.0.0",
- "use-sync-external-store": ">=1.2.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "immer": {
- "optional": true
- },
- "react": {
- "optional": true
- },
- "use-sync-external-store": {
- "optional": true
- }
- }
- }
- }
-}
diff --git a/frontend/package.json b/frontend/package.json
deleted file mode 100644
index 4017864..0000000
--- a/frontend/package.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "frontend",
- "private": true,
- "version": "0.0.0",
- "type": "module",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "lint": "eslint .",
- "preview": "vite preview"
- },
- "dependencies": {
- "@react-three/drei": "^10.7.7",
- "@react-three/fiber": "^9.6.1",
- "@react-three/rapier": "^2.2.0",
- "cors": "^2.8.6",
- "dotenv": "^17.4.2",
- "nipplejs": "^1.0.2",
- "react": "^19.2.5",
- "react-dom": "^19.2.5",
- "react-router-dom": "^7.15.0"
- },
- "devDependencies": {
- "@eslint/js": "^10.0.1",
- "@tailwindcss/vite": "^4.3.0",
- "@types/react": "^19.2.14",
- "@types/react-dom": "^19.2.3",
- "@vitejs/plugin-react": "^6.0.1",
- "eslint": "^10.2.1",
- "eslint-plugin-react-hooks": "^7.1.1",
- "eslint-plugin-react-refresh": "^0.5.2",
- "globals": "^17.5.0",
- "tailwindcss": "^4.3.0",
- "vite": "^8.0.10"
- }
-}
diff --git a/frontend/src/supabase.js b/frontend/src/supabase.js
deleted file mode 100644
index cb663f9..0000000
--- a/frontend/src/supabase.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import { createClient } from "@supabase/supabase-js";
-
-const supabaseURL = import.meta.env.VITE_PUBLIC_SUPABASE_URL;
-const supabaseAnonkey = import.meta.env.VITE_PUBLIC_SUPABASE_PUBLISHABLE_KEY;
-
-export const supabase = createClient(supabaseURL, supabaseAnonkey);
\ No newline at end of file
diff --git a/frontend/index.html b/index.html
similarity index 100%
rename from frontend/index.html
rename to index.html
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index 12126d9..4262b0d 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -1,150 +1,2970 @@
{
- "name": "grid",
+ "name": "frontend",
+ "version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.28.5",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.3",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz",
+ "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.0",
+ "@babel/generator": "^7.29.0",
+ "@babel/helper-compilation-targets": "^7.28.6",
+ "@babel/helper-module-transforms": "^7.28.6",
+ "@babel/helpers": "^7.28.6",
+ "@babel/parser": "^7.29.0",
+ "@babel/template": "^7.28.6",
+ "@babel/traverse": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.1",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
+ "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.28.6",
+ "@babel/helper-validator-option": "^7.27.1",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.28.6",
+ "@babel/types": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.28.6",
+ "@babel/helper-validator-identifier": "^7.28.5",
+ "@babel/traverse": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.28.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
+ "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.28.6",
+ "@babel/types": "^7.29.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.3",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz",
+ "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.0"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",
+ "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.28.6",
+ "@babel/parser": "^7.28.6",
+ "@babel/types": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.0",
+ "@babel/generator": "^7.29.0",
+ "@babel/helper-globals": "^7.28.0",
+ "@babel/parser": "^7.29.0",
+ "@babel/template": "^7.28.6",
+ "@babel/types": "^7.29.0",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.28.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@dimforge/rapier3d-compat": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",
+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/@emnapi/core": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
+ "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "1.2.1",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",
+ "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
+ "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.9.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.2",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.23.5",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
+ "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^3.0.5",
+ "debug": "^4.3.1",
+ "minimatch": "^10.2.4"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.5.tgz",
+ "integrity": "sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",
+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",
+ "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "eslint": "^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",
+ "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz",
+ "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@mediapipe/tasks-vision": {
+ "version": "0.10.17",
+ "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz",
+ "integrity": "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/@monogrid/gainmap-js": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/@monogrid/gainmap-js/-/gainmap-js-3.4.0.tgz",
+ "integrity": "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==",
+ "license": "MIT",
+ "dependencies": {
+ "promise-worker-transferable": "^1.0.4"
+ },
+ "peerDependencies": {
+ "three": ">= 0.159.0"
+ }
+ },
+ "node_modules/@napi-rs/wasm-runtime": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz",
+ "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@tybys/wasm-util": "^0.10.1"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ },
+ "peerDependencies": {
+ "@emnapi/core": "^1.7.1",
+ "@emnapi/runtime": "^1.7.1"
+ }
+ },
+ "node_modules/@oxc-project/types": {
+ "version": "0.128.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.128.0.tgz",
+ "integrity": "sha512-huv1Y/LzBJkBVHt3OlC7u0zHBW9qXf1FdD7sGmc1rXc2P1mTwHssYv7jyGx5KAACSCH+9B3Bhn6Z9luHRvf7pQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/Boshen"
+ }
+ },
+ "node_modules/@react-three/drei": {
+ "version": "10.7.7",
+ "resolved": "https://registry.npmjs.org/@react-three/drei/-/drei-10.7.7.tgz",
+ "integrity": "sha512-ff+J5iloR0k4tC++QtD/j9u3w5fzfgFAWDtAGQah9pF2B1YgOq/5JxqY0/aVoQG5r3xSZz0cv5tk2YuBob4xEQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.26.0",
+ "@mediapipe/tasks-vision": "0.10.17",
+ "@monogrid/gainmap-js": "^3.0.6",
+ "@use-gesture/react": "^10.3.1",
+ "camera-controls": "^3.1.0",
+ "cross-env": "^7.0.3",
+ "detect-gpu": "^5.0.56",
+ "glsl-noise": "^0.0.0",
+ "hls.js": "^1.5.17",
+ "maath": "^0.10.8",
+ "meshline": "^3.3.1",
+ "stats-gl": "^2.2.8",
+ "stats.js": "^0.17.0",
+ "suspend-react": "^0.1.3",
+ "three-mesh-bvh": "^0.8.3",
+ "three-stdlib": "^2.35.6",
+ "troika-three-text": "^0.52.4",
+ "tunnel-rat": "^0.1.2",
+ "use-sync-external-store": "^1.4.0",
+ "utility-types": "^3.11.0",
+ "zustand": "^5.0.1"
+ },
+ "peerDependencies": {
+ "@react-three/fiber": "^9.0.0",
+ "react": "^19",
+ "react-dom": "^19",
+ "three": ">=0.159"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@react-three/fiber": {
+ "version": "9.6.1",
+ "resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-9.6.1.tgz",
+ "integrity": "sha512-zF0rsKcVYpcJwbFEnv2HkHX9cvOEgsfQo/X8lwmR2dn13S4qEQJXir9fxf5js2LQFoXqxOY7MDkOkYx2uZ4gSg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.17.8",
+ "@types/webxr": "*",
+ "base64-js": "^1.5.1",
+ "buffer": "^6.0.3",
+ "its-fine": "^2.0.0",
+ "react-use-measure": "^2.1.7",
+ "scheduler": "^0.27.0",
+ "suspend-react": "^0.1.3",
+ "use-sync-external-store": "^1.4.0",
+ "zustand": "^5.0.3"
+ },
+ "peerDependencies": {
+ "expo": ">=43.0",
+ "expo-asset": ">=8.4",
+ "expo-file-system": ">=11.0",
+ "expo-gl": ">=11.0",
+ "react": ">=19 <19.3",
+ "react-dom": ">=19 <19.3",
+ "react-native": ">=0.78",
+ "three": ">=0.156"
+ },
+ "peerDependenciesMeta": {
+ "expo": {
+ "optional": true
+ },
+ "expo-asset": {
+ "optional": true
+ },
+ "expo-file-system": {
+ "optional": true
+ },
+ "expo-gl": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ },
+ "react-native": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@react-three/rapier": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@react-three/rapier/-/rapier-2.2.0.tgz",
+ "integrity": "sha512-mVsqbKXlGZoN+XrqdhzFZUQmy8pibEOVzl4k7LC+LHe84bQnYBSagy1Hvbda6bL1PJDdTFyiDiBk5buKFinNIQ==",
+ "dependencies": {
+ "@dimforge/rapier3d-compat": "0.19.2",
+ "suspend-react": "^0.1.3",
+ "three-stdlib": "^2.35.12"
+ },
+ "peerDependencies": {
+ "@react-three/fiber": "^9.0.4",
+ "react": "^19",
+ "three": ">=0.159.0"
+ }
+ },
+ "node_modules/@react-three/rapier/node_modules/@dimforge/rapier3d-compat": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.19.2.tgz",
+ "integrity": "sha512-AZHL1jqUF55QJkJyU1yKeh4ImX2J93bVLIezT1+o0FZqTix6O06MOaqpKoJ4MmbDCsoZmwO+qc471/SDMDm2AA==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/@rolldown/binding-linux-x64-gnu": {
+ "version": "1.0.0-rc.18",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.18.tgz",
+ "integrity": "sha512-uCo8ElcCIAMyYAZyuIZ81oFkhTSIllNvUCHCAlbhlN4ji3uC28h7IIdlXyIvGO7HsuqnV9p3rD/bpH7XhIyhRw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-musl": {
+ "version": "1.0.0-rc.18",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.18.tgz",
+ "integrity": "sha512-XNOQZtuE6yUIvx4rwGemwh8kpL1xvU41FXy/s9K7T/3JVcqGzo3NfKM2HrbrGgfPYGFW42f07Wk++aOC6B9NWA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-rc.7",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
+ "integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@supabase/auth-js": {
- "version": "2.105.3",
- "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.105.3.tgz",
- "integrity": "sha512-hMFuzP++mjRfe0/BUq4/e82CXIDgyjUgg0khLN8waol/gzoM1t2iGmhfJSGvQHQ1dr3XqWpP6ThAw4bLHMot5Q==",
+ "version": "2.106.0",
+ "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.106.0.tgz",
+ "integrity": "sha512-JY7602OvjK2l3BjsQkpePpxR+6P0iG37gCrZNWAMhAuNh1iFnhGRwj/y5EshUG0INMPGFrj0UA9MErQ/kOEKFg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/functions-js": {
+ "version": "2.106.0",
+ "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.106.0.tgz",
+ "integrity": "sha512-ADIkJYH5w7HbnGVAAlCbyKoLF5QdfyezBLfYXpUqhxZOacK6YepOvnP/8p4p+50bhTPWp6VhDxu19KO7e/qU2g==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/phoenix": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/@supabase/phoenix/-/phoenix-0.4.2.tgz",
+ "integrity": "sha512-YSAGnmDAfuleFCVt3CeurQZAhxRfXWeZIIkwp7NhYzQ1UwW6ePSnzsFAiUm/mbCkfoCf70QQHKW/K6RKh52a4A==",
+ "license": "MIT"
+ },
+ "node_modules/@supabase/postgrest-js": {
+ "version": "2.106.0",
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.106.0.tgz",
+ "integrity": "sha512-vNKFAXQrtmUn7J3LbN+uMlt0jciAwRIBpdy6Do4DKrpf1xj0kJhbqXTX4y8ziewWUEEx8G5GPnDmprXXaO9f3w==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/realtime-js": {
+ "version": "2.106.0",
+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.106.0.tgz",
+ "integrity": "sha512-mYZoaYpkyjlecixbvxCu0h3jw12uHfEcUqNdaRATNI8zQVI5arels+VJzAGcHwNiD+/Juv0OXIuk+M7SHsdI4A==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/phoenix": "^0.4.2",
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/storage-js": {
+ "version": "2.106.0",
+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.106.0.tgz",
+ "integrity": "sha512-BHc3nIjD3zfdDxBenphXrLJSoQ+qwo24VD96cVzmjBFbQVk5krvwRNUXrA5ozPplA3Vhlst2d/hy9R9ViqH2lg==",
+ "license": "MIT",
+ "dependencies": {
+ "iceberg-js": "^0.8.1",
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/supabase-js": {
+ "version": "2.106.0",
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.106.0.tgz",
+ "integrity": "sha512-OOoo3sLj9iVXNp6b+fkyOfFeQrvvNy7nQbaONNf72dOaictUeS39hFDS9argIRTag6M3ZxIypNWcrDAwLgUihQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/auth-js": "2.106.0",
+ "@supabase/functions-js": "2.106.0",
+ "@supabase/postgrest-js": "2.106.0",
+ "@supabase/realtime-js": "2.106.0",
+ "@supabase/storage-js": "2.106.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@tailwindcss/node": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz",
+ "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "enhanced-resolve": "^5.21.0",
+ "jiti": "^2.6.1",
+ "lightningcss": "1.32.0",
+ "magic-string": "^0.30.21",
+ "source-map-js": "^1.2.1",
+ "tailwindcss": "4.3.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz",
+ "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20"
+ },
+ "optionalDependencies": {
+ "@tailwindcss/oxide-android-arm64": "4.3.0",
+ "@tailwindcss/oxide-darwin-arm64": "4.3.0",
+ "@tailwindcss/oxide-darwin-x64": "4.3.0",
+ "@tailwindcss/oxide-freebsd-x64": "4.3.0",
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0",
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0",
+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.0",
+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.0",
+ "@tailwindcss/oxide-linux-x64-musl": "4.3.0",
+ "@tailwindcss/oxide-wasm32-wasi": "4.3.0",
+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0",
+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz",
+ "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz",
+ "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/vite": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz",
+ "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@tailwindcss/node": "4.3.0",
+ "@tailwindcss/oxide": "4.3.0",
+ "tailwindcss": "4.3.0"
+ },
+ "peerDependencies": {
+ "vite": "^5.2.0 || ^6 || ^7 || ^8"
+ }
+ },
+ "node_modules/@tweenjs/tween.js": {
+ "version": "23.1.3",
+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",
+ "license": "MIT"
+ },
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.2",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz",
+ "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/draco3d": {
+ "version": "1.4.10",
+ "resolved": "https://registry.npmjs.org/@types/draco3d/-/draco3d-1.4.10.tgz",
+ "integrity": "sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/esrecurse": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",
+ "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/offscreencanvas": {
+ "version": "2019.7.3",
+ "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz",
+ "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "19.2.14",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
+ "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.2.3",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.2.0"
+ }
+ },
+ "node_modules/@types/react-reconciler": {
+ "version": "0.28.9",
+ "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz",
+ "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*"
+ }
+ },
+ "node_modules/@types/stats.js": {
+ "version": "0.17.4",
+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",
+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/three": {
+ "version": "0.184.1",
+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.184.1.tgz",
+ "integrity": "sha512-6q4VdiqVsrTRqmk62/BnlcAvIrnDM0zf2ZDVKI5kZiniWrSaOHaQzmbp+BNzoggc/8tgW412pL//wZIxu2PPTA==",
+ "license": "MIT",
+ "dependencies": {
+ "@dimforge/rapier3d-compat": "~0.12.0",
+ "@tweenjs/tween.js": "~23.1.3",
+ "@types/stats.js": "*",
+ "@types/webxr": ">=0.5.17",
+ "fflate": "~0.8.2",
+ "meshoptimizer": "~1.1.1"
+ }
+ },
+ "node_modules/@types/webxr": {
+ "version": "0.5.24",
+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",
+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",
+ "license": "MIT"
+ },
+ "node_modules/@use-gesture/core": {
+ "version": "10.3.1",
+ "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz",
+ "integrity": "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==",
+ "license": "MIT"
+ },
+ "node_modules/@use-gesture/react": {
+ "version": "10.3.1",
+ "resolved": "https://registry.npmjs.org/@use-gesture/react/-/react-10.3.1.tgz",
+ "integrity": "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g==",
+ "license": "MIT",
+ "dependencies": {
+ "@use-gesture/core": "10.3.1"
+ },
+ "peerDependencies": {
+ "react": ">= 16.8.0"
+ }
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz",
+ "integrity": "sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rolldown/pluginutils": "1.0.0-rc.7"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",
+ "babel-plugin-react-compiler": "^1.0.0",
+ "vite": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@rolldown/plugin-babel": {
+ "optional": true
+ },
+ "babel-plugin-react-compiler": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.16.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
+ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.15.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.27",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.27.tgz",
+ "integrity": "sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/bidi-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",
+ "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",
+ "license": "MIT",
+ "dependencies": {
+ "require-from-string": "^2.0.2"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "5.0.6",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
+ "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.10.12",
+ "caniuse-lite": "^1.0.30001782",
+ "electron-to-chromium": "^1.5.328",
+ "node-releases": "^2.0.36",
+ "update-browserslist-db": "^1.2.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/buffer": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.2.1"
+ }
+ },
+ "node_modules/camera-controls": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-3.1.0.tgz",
+ "integrity": "sha512-w5oULNpijgTRH0ARFJJ0R5ct1nUM3R3WP7/b8A6j9uTGpRfnsypc/RBMPQV8JQDPayUe37p/TZZY1PcUr4czOQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.11.0",
+ "npm": ">=10.8.2"
+ },
+ "peerDependencies": {
+ "three": ">=0.126.1"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001792",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001792.tgz",
+ "integrity": "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cookie": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/cors": {
+ "version": "2.8.6",
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
+ "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
+ "license": "MIT",
+ "dependencies": {
+ "object-assign": "^4",
+ "vary": "^1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "bin": {
+ "cross-env": "src/bin/cross-env.js",
+ "cross-env-shell": "src/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=10.14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/detect-gpu": {
+ "version": "5.0.70",
+ "resolved": "https://registry.npmjs.org/detect-gpu/-/detect-gpu-5.0.70.tgz",
+ "integrity": "sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==",
+ "license": "MIT",
+ "dependencies": {
+ "webgl-constants": "^1.1.1"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "17.4.2",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
+ "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/draco3d": {
+ "version": "1.5.7",
+ "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz",
+ "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.352",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.352.tgz",
+ "integrity": "sha512-9wHk8x6dyuimoe18EdiDPWKExNdxYqo4fn4FwOVVper6RxT3cmpBwBkWWfSOCYJjQdIco/nPhJhNLmn4Ufg1Yg==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.21.3",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.3.tgz",
+ "integrity": "sha512-QyL119InA+XXEkNLNTPCXPugSvOfhwv0JOlGNzvxs0hZaiHLNvXSpudUWsOlsXGWJh8G6ckCScEkVHfX3kw/2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "10.3.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.3.0.tgz",
+ "integrity": "sha512-XbEXaRva5cF0ZQB8w6MluHA0kZZfV2DuCMJ3ozyEOHLwDpZX2Lmm/7Pp0xdJmI0GL1W05VH5VwIFHEm1Vcw2gw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.2",
+ "@eslint/config-array": "^0.23.5",
+ "@eslint/config-helpers": "^0.5.5",
+ "@eslint/core": "^1.2.1",
+ "@eslint/plugin-kit": "^0.7.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^9.1.2",
+ "eslint-visitor-keys": "^5.0.1",
+ "espree": "^11.2.0",
+ "esquery": "^1.7.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "minimatch": "^10.2.4",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
+ "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.24.4",
+ "@babel/parser": "^7.24.4",
+ "hermes-parser": "^0.25.1",
+ "zod": "^3.25.0 || ^4.0.0",
+ "zod-validation-error": "^3.5.0 || ^4.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-react-refresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz",
+ "integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "eslint": "^9 || ^10"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "9.1.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",
+ "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@types/esrecurse": "^4.3.1",
+ "@types/estree": "^1.0.8",
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "11.2.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
+ "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.16.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^5.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/fflate": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",
+ "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",
+ "license": "MIT"
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
+ "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "17.6.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz",
+ "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/glsl-noise": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/glsl-noise/-/glsl-noise-0.0.0.tgz",
+ "integrity": "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==",
+ "license": "MIT"
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/hermes-estree": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
+ "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/hermes-parser": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
+ "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hermes-estree": "0.25.1"
+ }
+ },
+ "node_modules/hls.js": {
+ "version": "1.6.16",
+ "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.6.16.tgz",
+ "integrity": "sha512-VSIRpLfRwlAAdGL4wiTucx2ScRipo0ed1FBatWkyt832jC4CReKstga6yIhYVwGu9LOBjuX9wzmRMeQdBJtzEA==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/iceberg-js": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz",
+ "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/immediate": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
+ "license": "MIT"
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-promise": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
+ "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",
+ "license": "MIT"
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "license": "ISC"
+ },
+ "node_modules/its-fine": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/its-fine/-/its-fine-2.0.0.tgz",
+ "integrity": "sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/react-reconciler": "^0.28.9"
+ },
+ "peerDependencies": {
+ "react": "^19.0.0"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lie": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",
+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "immediate": "~3.0.5"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.32.0",
+ "lightningcss-darwin-arm64": "1.32.0",
+ "lightningcss-darwin-x64": "1.32.0",
+ "lightningcss-freebsd-x64": "1.32.0",
+ "lightningcss-linux-arm-gnueabihf": "1.32.0",
+ "lightningcss-linux-arm64-gnu": "1.32.0",
+ "lightningcss-linux-arm64-musl": "1.32.0",
+ "lightningcss-linux-x64-gnu": "1.32.0",
+ "lightningcss-linux-x64-musl": "1.32.0",
+ "lightningcss-win32-arm64-msvc": "1.32.0",
+ "lightningcss-win32-x64-msvc": "1.32.0"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/maath": {
+ "version": "0.10.8",
+ "resolved": "https://registry.npmjs.org/maath/-/maath-0.10.8.tgz",
+ "integrity": "sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/three": ">=0.134.0",
+ "three": ">=0.134.0"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/meshline": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/meshline/-/meshline-3.3.1.tgz",
+ "integrity": "sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "three": ">=0.137"
+ }
+ },
+ "node_modules/meshoptimizer": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",
+ "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",
+ "license": "MIT"
+ },
+ "node_modules/minimatch": {
+ "version": "10.2.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
+ "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.5"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.12",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",
+ "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nipplejs": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/nipplejs/-/nipplejs-1.0.2.tgz",
+ "integrity": "sha512-/6gzGs1jJxtRC2i4kw6yAeMB7N0m5M+HSMmRdky8yoBUJOyNyDxsUves5DSgLGdhGE7IBsYCu1wY+dnJZz0yUQ==",
+ "license": "MIT"
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.38",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz",
+ "integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.14",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz",
+ "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
"license": "MIT",
"dependencies": {
- "tslib": "2.8.1"
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
},
"engines": {
- "node": ">=20.0.0"
+ "node": "^10 || ^12 || >=14"
}
},
- "node_modules/@supabase/functions-js": {
- "version": "2.105.3",
- "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.105.3.tgz",
- "integrity": "sha512-KyutUwLLUZ9fRXsiFACL6lq7akBVHFl0fnqQnrxjbsPco8jeb4EyirQuvr52QCLnikzjMRC0uxAHOSM54aDrZA==",
+ "node_modules/potpack": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz",
+ "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==",
+ "license": "ISC"
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
"license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/promise-worker-transferable": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/promise-worker-transferable/-/promise-worker-transferable-1.0.4.tgz",
+ "integrity": "sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw==",
+ "license": "Apache-2.0",
"dependencies": {
- "tslib": "2.8.1"
- },
+ "is-promise": "^2.1.0",
+ "lie": "^3.0.2"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
"engines": {
- "node": ">=20.0.0"
+ "node": ">=6"
}
},
- "node_modules/@supabase/phoenix": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/@supabase/phoenix/-/phoenix-0.4.1.tgz",
- "integrity": "sha512-hWGJkDAfWUNY8k0C080u3sGNFd2ncl9erhKgP7hnGkgJWEfT5Pd/SXal4QmWXBECVlZrannMAc9sBaaRyWpiUA==",
- "license": "MIT"
+ "node_modules/react": {
+ "version": "19.2.6",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz",
+ "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
},
- "node_modules/@supabase/postgrest-js": {
- "version": "2.105.3",
- "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.105.3.tgz",
- "integrity": "sha512-jFVYRHcri0ZMcTzKpQ2r2wWOB8/rPsbj92kxmCmVJUiRrdgiMtuYlkS06Fhs8UJZhEOL0UpGhh06XDwh8JwtBQ==",
+ "node_modules/react-dom": {
+ "version": "19.2.6",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz",
+ "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==",
"license": "MIT",
"dependencies": {
- "tslib": "2.8.1"
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.6"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "7.15.0",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.15.0.tgz",
+ "integrity": "sha512-HW9vYwuM8f4yx66Izy8xfrzCM+SBJluoZcCbww9A1TySax11S5Vgw6fi3ZjMONw9J4gQwngL7PzkyIpJJpJ7RQ==",
+ "license": "MIT",
+ "dependencies": {
+ "cookie": "^1.0.1",
+ "set-cookie-parser": "^2.6.0"
},
"engines": {
"node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
}
},
- "node_modules/@supabase/realtime-js": {
- "version": "2.105.3",
- "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.105.3.tgz",
- "integrity": "sha512-L+qPiJlq1RKh3QD2fORGCFo2RKDKlvG9mjvPtUEQJ2tMixrx70VIV6j8BdWzQkbc1Nao6mvTWajyDhX3TFgljw==",
+ "node_modules/react-router-dom": {
+ "version": "7.15.0",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.15.0.tgz",
+ "integrity": "sha512-VcrVg64Fo8nwBvDscajG8gRTLIuTC6N50nb22l2HOOV4PTOHgoGp8mUjy9wLiHYoYTSYI36tUnXZgasSRFZorQ==",
"license": "MIT",
"dependencies": {
- "@supabase/phoenix": "^0.4.1",
- "@types/ws": "^8.18.1",
- "tslib": "2.8.1",
- "ws": "^8.18.2"
+ "react-router": "7.15.0"
},
"engines": {
"node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
}
},
- "node_modules/@supabase/storage-js": {
- "version": "2.105.3",
- "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.105.3.tgz",
- "integrity": "sha512-M7oPCCcHim/FsR6rKIs10Nd9mW051N2SQvA27jiVLa7oQMFFb7faX5dCQRV4GS5QeFsBcV5J/fWl4Ppoaw8cBQ==",
+ "node_modules/react-use-measure": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz",
+ "integrity": "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": ">=16.13",
+ "react-dom": ">=16.13"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rolldown": {
+ "version": "1.0.0-rc.18",
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.18.tgz",
+ "integrity": "sha512-phmyKBpuBdRYDf4hgyynGAYn/rDDe+iZXKVJ7WX5b1zQzpLkP5oJRPGsfJuHdzPMlyyEO/4sPW6yfSx2gf7lVg==",
+ "dev": true,
"license": "MIT",
"dependencies": {
- "iceberg-js": "^0.8.1",
- "tslib": "2.8.1"
+ "@oxc-project/types": "=0.128.0",
+ "@rolldown/pluginutils": "1.0.0-rc.18"
+ },
+ "bin": {
+ "rolldown": "bin/cli.mjs"
},
"engines": {
- "node": ">=20.0.0"
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "optionalDependencies": {
+ "@rolldown/binding-android-arm64": "1.0.0-rc.18",
+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.18",
+ "@rolldown/binding-darwin-x64": "1.0.0-rc.18",
+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.18",
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.18",
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.18",
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.18",
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.18",
+ "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.18",
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.18",
+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.18",
+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.18",
+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.18",
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.18",
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.18"
}
},
- "node_modules/@supabase/supabase-js": {
- "version": "2.105.3",
- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.105.3.tgz",
- "integrity": "sha512-5Dm9+I61LAWwjw+0zcqXhSmTxUJaYHBPyHwMCIBH4TBUNwDn2pYUIsi6oUu0I5r9HtLtaFl7w4wa+DV9gRsbDg==",
+ "node_modules/rolldown/node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-rc.18",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.18.tgz",
+ "integrity": "sha512-CUY5Mnhe64xQBGZEEXQ5WyZwsc1JU3vAZLIxtrsBt3LO6UOb+C8GunVKqe9sT8NeWb4lqSaoJtp2xo6GxT1MNw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-cookie-parser": {
+ "version": "2.7.2",
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
+ "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
+ "license": "MIT"
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"license": "MIT",
"dependencies": {
- "@supabase/auth-js": "2.105.3",
- "@supabase/functions-js": "2.105.3",
- "@supabase/postgrest-js": "2.105.3",
- "@supabase/realtime-js": "2.105.3",
- "@supabase/storage-js": "2.105.3"
+ "shebang-regex": "^3.0.0"
},
"engines": {
- "node": ">=20.0.0"
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
}
},
- "node_modules/@types/node": {
- "version": "25.6.0",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",
- "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stats-gl": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/stats-gl/-/stats-gl-2.4.2.tgz",
+ "integrity": "sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==",
"license": "MIT",
"dependencies": {
- "undici-types": "~7.19.0"
+ "@types/three": "*",
+ "three": "^0.170.0"
+ },
+ "peerDependencies": {
+ "@types/three": "*",
+ "three": "*"
+ }
+ },
+ "node_modules/stats-gl/node_modules/three": {
+ "version": "0.170.0",
+ "resolved": "https://registry.npmjs.org/three/-/three-0.170.0.tgz",
+ "integrity": "sha512-FQK+LEpYc0fBD+J8g6oSEyyNzjp+Q7Ks1C568WWaoMRLW+TkNNWmenWeGgJjV105Gd+p/2ql1ZcjYvNiPZBhuQ==",
+ "license": "MIT"
+ },
+ "node_modules/stats.js": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz",
+ "integrity": "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==",
+ "license": "MIT"
+ },
+ "node_modules/suspend-react": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",
+ "integrity": "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": ">=17.0"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz",
+ "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tapable": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/three": {
+ "version": "0.184.0",
+ "resolved": "https://registry.npmjs.org/three/-/three-0.184.0.tgz",
+ "integrity": "sha512-wtTRjG92pM5eUg/KuUnHsqSAlPM296brTOcLgMRqEeylYTh/CdtvKUvCyyCQTzFuStieWxvZb8mVTMvdPyUpxg==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/three-mesh-bvh": {
+ "version": "0.8.3",
+ "resolved": "https://registry.npmjs.org/three-mesh-bvh/-/three-mesh-bvh-0.8.3.tgz",
+ "integrity": "sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "three": ">= 0.159.0"
}
},
- "node_modules/@types/ws": {
- "version": "8.18.1",
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
- "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
+ "node_modules/three-stdlib": {
+ "version": "2.36.1",
+ "resolved": "https://registry.npmjs.org/three-stdlib/-/three-stdlib-2.36.1.tgz",
+ "integrity": "sha512-XyGQrFmNQ5O/IoKm556ftwKsBg11TIb301MB5dWNicziQBEs2g3gtOYIf7pFiLa0zI2gUwhtCjv9fmjnxKZ1Cg==",
"license": "MIT",
"dependencies": {
- "@types/node": "*"
+ "@types/draco3d": "^1.4.0",
+ "@types/offscreencanvas": "^2019.6.4",
+ "@types/webxr": "^0.5.2",
+ "draco3d": "^1.4.1",
+ "fflate": "^0.6.9",
+ "potpack": "^1.0.1"
+ },
+ "peerDependencies": {
+ "three": ">=0.128.0"
}
},
- "node_modules/iceberg-js": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz",
- "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==",
+ "node_modules/three-stdlib/node_modules/fflate": {
+ "version": "0.6.10",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz",
+ "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==",
+ "license": "MIT"
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.16",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
+ "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
+ "dev": true,
"license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
"engines": {
- "node": ">=20.0.0"
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/troika-three-text": {
+ "version": "0.52.4",
+ "resolved": "https://registry.npmjs.org/troika-three-text/-/troika-three-text-0.52.4.tgz",
+ "integrity": "sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg==",
+ "license": "MIT",
+ "dependencies": {
+ "bidi-js": "^1.0.2",
+ "troika-three-utils": "^0.52.4",
+ "troika-worker-utils": "^0.52.0",
+ "webgl-sdf-generator": "1.1.1"
+ },
+ "peerDependencies": {
+ "three": ">=0.125.0"
+ }
+ },
+ "node_modules/troika-three-utils": {
+ "version": "0.52.4",
+ "resolved": "https://registry.npmjs.org/troika-three-utils/-/troika-three-utils-0.52.4.tgz",
+ "integrity": "sha512-NORAStSVa/BDiG52Mfudk4j1FG4jC4ILutB3foPnfGbOeIs9+G5vZLa0pnmnaftZUGm4UwSoqEpWdqvC7zms3A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "three": ">=0.125.0"
}
},
+ "node_modules/troika-worker-utils": {
+ "version": "0.52.0",
+ "resolved": "https://registry.npmjs.org/troika-worker-utils/-/troika-worker-utils-0.52.0.tgz",
+ "integrity": "sha512-W1CpvTHykaPH5brv5VHLfQo9D1OYuo0cSBEUQFFT/nBUzM8iD6Lq2/tgG/f1OelbAS1WtaTPQzE5uM49egnngw==",
+ "license": "MIT"
+ },
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"license": "0BSD"
},
- "node_modules/undici-types": {
- "version": "7.19.2",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz",
- "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",
+ "node_modules/tunnel-rat": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/tunnel-rat/-/tunnel-rat-0.1.2.tgz",
+ "integrity": "sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ==",
+ "license": "MIT",
+ "dependencies": {
+ "zustand": "^4.3.2"
+ }
+ },
+ "node_modules/tunnel-rat/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/utility-types": {
+ "version": "3.11.0",
+ "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz",
+ "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/vite": {
+ "version": "8.0.11",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.11.tgz",
+ "integrity": "sha512-Jz1mxtUBR5xTT65VOdJZUUeoyLtqljmFkiUXhPTLZka3RDc9vpi/xXkyrnsdRcm2lIi3l3GPMnAidTsEGIj3Ow==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lightningcss": "^1.32.0",
+ "picomatch": "^4.0.4",
+ "postcss": "^8.5.14",
+ "rolldown": "1.0.0-rc.18",
+ "tinyglobby": "^0.2.16"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "@vitejs/devtools": "^0.1.18",
+ "esbuild": "^0.27.0 || ^0.28.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "@vitejs/devtools": {
+ "optional": true
+ },
+ "esbuild": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/webgl-constants": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/webgl-constants/-/webgl-constants-1.1.1.tgz",
+ "integrity": "sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg=="
+ },
+ "node_modules/webgl-sdf-generator": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/webgl-sdf-generator/-/webgl-sdf-generator-1.1.1.tgz",
+ "integrity": "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==",
"license": "MIT"
},
- "node_modules/ws": {
- "version": "8.20.1",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz",
- "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==",
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zod": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-validation-error": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
+ "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "zod": "^3.25.0 || ^4.0.0"
+ }
+ },
+ "node_modules/zustand": {
+ "version": "5.0.13",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.13.tgz",
+ "integrity": "sha512-efI2tVaVQPqtOh114loML/Z80Y4NP3yc+Ff0fYiZJPauNeWZeIp/bRFD7I9bfmCOYBh/PHxlglQ9+wvlwnPikQ==",
"license": "MIT",
"engines": {
- "node": ">=10.0.0"
+ "node": ">=12.20.0"
},
"peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": ">=5.0.2"
+ "@types/react": ">=18.0.0",
+ "immer": ">=9.0.6",
+ "react": ">=18.0.0",
+ "use-sync-external-store": ">=1.2.0"
},
"peerDependenciesMeta": {
- "bufferutil": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
"optional": true
},
- "utf-8-validate": {
+ "use-sync-external-store": {
"optional": true
}
}
diff --git a/node_modules/@supabase/auth-js/LICENSE b/node_modules/@supabase/auth-js/LICENSE
deleted file mode 100644
index ddeba6a..0000000
--- a/node_modules/@supabase/auth-js/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2020 Supabase
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/@supabase/auth-js/README.md b/node_modules/@supabase/auth-js/README.md
deleted file mode 100644
index 855cd3a..0000000
--- a/node_modules/@supabase/auth-js/README.md
+++ /dev/null
@@ -1,190 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
Supabase Auth JS SDK
-
- An isomorphic JavaScript SDK for the Supabase Auth API.
-
-
- Guides
- ·
- Reference Docs
- ·
- TypeDoc
-
-
-
-
-
-[](https://github.com/supabase/supabase-js/actions?query=branch%3Amaster)
-[](https://www.npmjs.com/package/@supabase/auth-js)
-[](#license)
-[](https://pkg.pr.new/~/supabase/auth-js)
-
-
-
-## Requirements
-
-- **Node.js 20 or later** (Node.js 18 support dropped as of October 31, 2025)
-- For browser support, all modern browsers are supported
-
-> ⚠️ **Node.js 18 Deprecation Notice**
->
-> Node.js 18 reached end-of-life on April 30, 2025. As announced in [our deprecation notice](https://github.com/orgs/supabase/discussions/37217), support for Node.js 18 was dropped on October 31, 2025.
-
-## Quick start
-
-Install
-
-```bash
-npm install --save @supabase/auth-js
-```
-
-Usage
-
-```js
-import { AuthClient } from '@supabase/auth-js'
-
-const GOTRUE_URL = 'http://localhost:9999'
-
-const auth = new AuthClient({ url: GOTRUE_URL })
-```
-
-- `signUp()`: https://supabase.com/docs/reference/javascript/auth-signup
-- `signIn()`: https://supabase.com/docs/reference/javascript/auth-signin
-- `signOut()`: https://supabase.com/docs/reference/javascript/auth-signout
-
-### Custom `fetch` implementation
-
-`auth-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:
-
-```js
-import { AuthClient } from '@supabase/auth-js'
-
-const AUTH_URL = 'http://localhost:9999'
-
-const auth = new AuthClient({ url: AUTH_URL, fetch: fetch })
-```
-
-## Development
-
-This package is part of the [Supabase JavaScript monorepo](https://github.com/supabase/supabase-js). To work on this package:
-
-### Building
-
-```bash
-# Complete build (from monorepo root)
-npx nx build auth-js
-
-# Build with watch mode for development
-npx nx build auth-js --watch
-
-# Individual build targets
-npx nx build:main auth-js # CommonJS build (dist/main/)
-npx nx build:module auth-js # ES Modules build (dist/module/)
-
-# Other useful commands
-npx nx lint auth-js # Run ESLint
-npx nx typecheck auth-js # TypeScript type checking
-npx nx docs auth-js # Generate documentation
-```
-
-#### Build Outputs
-
-- **CommonJS (`dist/main/`)** - For Node.js environments
-- **ES Modules (`dist/module/`)** - For modern bundlers (Webpack, Vite, Rollup)
-- **TypeScript definitions (`dist/module/index.d.ts`)** - Type definitions for TypeScript projects
-
-### Testing
-
-The auth-js package has two test suites:
-
-1. **CLI Tests** - Main test suite using Supabase CLI (331 tests)
-2. **Docker Tests** - Edge case tests requiring specific GoTrue configurations (11 tests)
-
-#### Prerequisites
-
-- **Supabase CLI** - Required for main test suite ([installation guide](https://supabase.com/docs/guides/cli))
-- **Docker** - Required for edge case tests
-
-#### Running Tests
-
-```bash
-# Run main test suite with Supabase CLI (recommended)
-npx nx test:auth auth-js
-
-# Run Docker-only edge case tests
-npx nx test:docker auth-js
-
-# Run both test suites
-npx nx test:auth auth-js && npx nx test:docker auth-js
-```
-
-#### Main Test Suite (Supabase CLI)
-
-The `test:auth` command automatically:
-
-1. Stops any existing Supabase instance
-2. Starts a local Supabase instance via CLI
-3. Runs the test suite (excludes `docker-tests/` folder)
-4. Cleans up after tests complete
-
-```bash
-# Individual commands for manual control
-npx nx test:infra auth-js # Start Supabase CLI
-npx nx test:suite auth-js # Run tests only
-npx nx test:clean-post auth-js # Stop Supabase CLI
-```
-
-#### Docker Tests (Edge Cases)
-
-The `test:docker` target runs tests that require specific GoTrue configurations not possible with a single Supabase CLI instance:
-
-- **Signup disabled** - Tests for disabled signup functionality
-- **Asymmetric JWT (RS256)** - Tests for RS256 JWT verification
-- **Phone OTP / SMS** - Tests requiring Twilio SMS provider
-- **Anonymous sign-in disabled** - Tests for disabled anonymous auth
-
-These tests are located in `test/docker-tests/` and use the Docker Compose setup in `infra/docker-compose.yml`.
-
-```bash
-# Individual commands for manual control
-npx nx test:docker:infra auth-js # Start Docker containers
-npx nx test:docker:suite auth-js # Run Docker tests only
-npx nx test:docker:clean-post auth-js # Stop Docker containers
-```
-
-#### Development Testing
-
-For actively developing and debugging tests:
-
-```bash
-# Start Supabase CLI once
-npx nx test:infra auth-js
-
-# Run tests multiple times (faster since instance stays up)
-npx nx test:suite auth-js
-
-# Clean up when done
-npx nx test:clean-post auth-js
-```
-
-#### Test Infrastructure
-
-| Suite | Infrastructure | Configuration |
-| ------------ | -------------- | --------------------------- |
-| CLI Tests | Supabase CLI | `test/supabase/config.toml` |
-| Docker Tests | Docker Compose | `infra/docker-compose.yml` |
-
-### Contributing
-
-We welcome contributions! Please see our [Contributing Guide](../../../CONTRIBUTING.md) for details on how to get started.
-
-For major changes or if you're unsure about something, please open an issue first to discuss your proposed changes.
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts b/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts
deleted file mode 100644
index aacb97d..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import GoTrueAdminApi from './GoTrueAdminApi';
-declare const AuthAdminApi: typeof GoTrueAdminApi;
-export default AuthAdminApi;
-//# sourceMappingURL=AuthAdminApi.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts.map b/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts.map
deleted file mode 100644
index 5c6efa8..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AuthAdminApi.d.ts","sourceRoot":"","sources":["../../src/AuthAdminApi.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAE7C,QAAA,MAAM,YAAY,uBAAiB,CAAA;AAEnC,eAAe,YAAY,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js b/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js
deleted file mode 100644
index 0fed974..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const tslib_1 = require("tslib");
-const GoTrueAdminApi_1 = tslib_1.__importDefault(require("./GoTrueAdminApi"));
-const AuthAdminApi = GoTrueAdminApi_1.default;
-exports.default = AuthAdminApi;
-//# sourceMappingURL=AuthAdminApi.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js.map b/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js.map
deleted file mode 100644
index 6e77d09..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AuthAdminApi.js","sourceRoot":"","sources":["../../src/AuthAdminApi.ts"],"names":[],"mappings":";;;AAAA,8EAA6C;AAE7C,MAAM,YAAY,GAAG,wBAAc,CAAA;AAEnC,kBAAe,YAAY,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts b/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts
deleted file mode 100644
index 596eec9..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import GoTrueClient from './GoTrueClient';
-declare const AuthClient: typeof GoTrueClient;
-export default AuthClient;
-//# sourceMappingURL=AuthClient.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts.map b/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts.map
deleted file mode 100644
index 503d802..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AuthClient.d.ts","sourceRoot":"","sources":["../../src/AuthClient.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,QAAA,MAAM,UAAU,qBAAe,CAAA;AAE/B,eAAe,UAAU,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthClient.js b/node_modules/@supabase/auth-js/dist/main/AuthClient.js
deleted file mode 100644
index d6e667d..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthClient.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const tslib_1 = require("tslib");
-const GoTrueClient_1 = tslib_1.__importDefault(require("./GoTrueClient"));
-const AuthClient = GoTrueClient_1.default;
-exports.default = AuthClient;
-//# sourceMappingURL=AuthClient.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/AuthClient.js.map b/node_modules/@supabase/auth-js/dist/main/AuthClient.js.map
deleted file mode 100644
index 176c212..0000000
--- a/node_modules/@supabase/auth-js/dist/main/AuthClient.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AuthClient.js","sourceRoot":"","sources":["../../src/AuthClient.ts"],"names":[],"mappings":";;;AAAA,0EAAyC;AAEzC,MAAM,UAAU,GAAG,sBAAY,CAAA;AAE/B,kBAAe,UAAU,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts b/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts
deleted file mode 100644
index 9ebe6e7..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts
+++ /dev/null
@@ -1,716 +0,0 @@
-import { Fetch } from './lib/fetch';
-import { AdminUserAttributes, GenerateLinkParams, GenerateLinkResponse, Pagination, User, UserResponse, GoTrueAdminMFAApi, PageParams, SignOutScope, GoTrueAdminOAuthApi, GoTrueAdminCustomProvidersApi, GoTrueAdminPasskeyApi, ExperimentalFeatureFlags } from './lib/types';
-import { AuthError } from './lib/errors';
-export default class GoTrueAdminApi {
- /** Contains all MFA administration methods. */
- mfa: GoTrueAdminMFAApi;
- /**
- * Contains all OAuth client administration methods.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- oauth: GoTrueAdminOAuthApi;
- /** Contains all custom OIDC/OAuth provider administration methods. */
- customProviders: GoTrueAdminCustomProvidersApi;
- /**
- * Contains all passkey administration methods.
- *
- * Requires `auth.experimental.passkey: true`; otherwise all methods throw.
- */
- passkey: GoTrueAdminPasskeyApi;
- protected url: string;
- protected headers: {
- [key: string]: string;
- };
- protected fetch: Fetch;
- protected experimental: ExperimentalFeatureFlags;
- /**
- * Creates an admin API client that can be used to manage users and OAuth clients.
- *
- * @example Using supabase-js (recommended)
- * ```ts
- * import { createClient } from '@supabase/supabase-js'
- *
- * const supabase = createClient('https://xyzcompany.supabase.co', 'your-secret-key')
- * const { data, error } = await supabase.auth.admin.listUsers()
- * ```
- *
- * @example Standalone import for bundle-sensitive environments
- * ```ts
- * import { GoTrueAdminApi } from '@supabase/auth-js'
- *
- * const admin = new GoTrueAdminApi({
- * url: 'https://xyzcompany.supabase.co/auth/v1',
- * headers: { Authorization: `Bearer ${process.env.SUPABASE_SECRET_KEY}` },
- * })
- * ```
- */
- constructor({ url, headers, fetch, experimental, }: {
- url: string;
- headers?: {
- [key: string]: string;
- };
- fetch?: Fetch;
- experimental?: ExperimentalFeatureFlags;
- });
- /**
- * Removes a logged-in session.
- * @param jwt A valid, logged-in JWT.
- * @param scope The logout sope.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- signOut(jwt: string, scope?: SignOutScope): Promise<{
- data: null;
- error: AuthError | null;
- }>;
- /**
- * Sends an invite link to an email address.
- * @param email The email address of the user.
- * @param options Additional options to be included when inviting.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - Sends an invite link to the user's email address.
- * - The `inviteUserByEmail()` method is typically used by administrators to invite users to join the application.
- * - Note that PKCE is not supported when using `inviteUserByEmail`. This is because the browser initiating the invite is often different from the browser accepting the invite which makes it difficult to provide the security guarantees required of the PKCE flow.
- *
- * @example Invite a user
- * ```js
- * const { data, error } = await supabase.auth.admin.inviteUserByEmail('email@example.com')
- * ```
- *
- * @exampleResponse Invite a user
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "invited_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmation_sent_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- */
- inviteUserByEmail(email: string, options?: {
- /** A custom data object to store additional metadata about the user. This maps to the `auth.users.user_metadata` column. */
- data?: object;
- /** The URL which will be appended to the email link sent to the user's email address. Once clicked the user will end up on this URL. */
- redirectTo?: string;
- }): Promise;
- /**
- * Generates email links and OTPs to be sent via a custom email provider.
- * @param email The user's email.
- * @param options.password User password. For signup only.
- * @param options.data Optional user metadata. For signup only.
- * @param options.redirectTo The redirect url which should be appended to the generated link
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `email_change_current`, `email_change_new`, `phone_change`.
- * - `generateLink()` only generates the email link for `email_change_email` if the **Secure email change** is enabled in your project's [email auth provider settings](/dashboard/project/_/auth/providers).
- * - `generateLink()` handles the creation of the user for `signup`, `invite` and `magiclink`.
- *
- * @example Generate a signup link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'signup',
- * email: 'email@example.com',
- * password: 'secret'
- * })
- * ```
- *
- * @exampleResponse Generate a signup link
- * ```json
- * {
- * "data": {
- * "properties": {
- * "action_link": "",
- * "email_otp": "999999",
- * "hashed_token": "",
- * "verification_type": "signup"
- * },
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "email@example.com",
- * "phone": "",
- * "confirmation_sent_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "email@example.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Generate an invite link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'invite',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @example Generate a magic link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'magiclink',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @example Generate a recovery link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'recovery',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @example Generate links to change current email address
- * ```js
- * // generate an email change link to be sent to the current email address
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'email_change_current',
- * email: 'current.email@example.com',
- * newEmail: 'new.email@example.com'
- * })
- *
- * // generate an email change link to be sent to the new email address
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'email_change_new',
- * email: 'current.email@example.com',
- * newEmail: 'new.email@example.com'
- * })
- * ```
- */
- generateLink(params: GenerateLinkParams): Promise;
- /**
- * Creates a new user.
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - To confirm the user's email address or phone number, set `email_confirm` or `phone_confirm` to true. Both arguments default to false.
- * - `createUser()` will not send a confirmation email to the user. You can use [`inviteUserByEmail()`](/docs/reference/javascript/auth-admin-inviteuserbyemail) if you want to send them an email invite instead.
- * - If you are sure that the created user's email or phone number is legitimate and verified, you can set the `email_confirm` or `phone_confirm` param to `true`.
- *
- * @example With custom user metadata
- * ```js
- * const { data, error } = await supabase.auth.admin.createUser({
- * email: 'user@email.com',
- * password: 'password',
- * user_metadata: { name: 'Yoda' }
- * })
- * ```
- *
- * @exampleResponse With custom user metadata
- * ```json
- * {
- * data: {
- * user: {
- * id: '1',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {},
- * user_metadata: {},
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "1",
- * "user_id": "1",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "phone_verified": false,
- * "sub": "1"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false,
- * }
- * }
- * error: null
- * }
- * ```
- *
- * @example Auto-confirm the user's email
- * ```js
- * const { data, error } = await supabase.auth.admin.createUser({
- * email: 'user@email.com',
- * email_confirm: true
- * })
- * ```
- *
- * @example Auto-confirm the user's phone number
- * ```js
- * const { data, error } = await supabase.auth.admin.createUser({
- * phone: '1234567890',
- * phone_confirm: true
- * })
- * ```
- */
- createUser(attributes: AdminUserAttributes): Promise;
- /**
- * Get a list of users.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- * @param params An object which supports `page` and `perPage` as numbers, to alter the paginated results.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - Defaults to return 50 users per page.
- *
- * @example Get a page of users
- * ```js
- * const { data: { users }, error } = await supabase.auth.admin.listUsers()
- * ```
- *
- * @example Paginated list of users
- * ```js
- * const { data: { users }, error } = await supabase.auth.admin.listUsers({
- * page: 1,
- * perPage: 1000
- * })
- * ```
- */
- listUsers(params?: PageParams): Promise<{
- data: {
- users: User[];
- aud: string;
- } & Pagination;
- error: null;
- } | {
- data: {
- users: [];
- };
- error: AuthError;
- }>;
- /**
- * Get user by id.
- *
- * @param uid The user's unique identifier
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - Fetches the user object from the database based on the user's id.
- * - The `getUserById()` method requires the user's id which maps to the `auth.users.id` column.
- *
- * @example Fetch the user object using the access_token jwt
- * ```js
- * const { data, error } = await supabase.auth.admin.getUserById(1)
- * ```
- *
- * @exampleResponse Fetch the user object using the access_token jwt
- * ```json
- * {
- * data: {
- * user: {
- * id: '1',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {},
- * user_metadata: {},
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "1",
- * "user_id": "1",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "phone_verified": false,
- * "sub": "1"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false,
- * }
- * }
- * error: null
- * }
- * ```
- */
- getUserById(uid: string): Promise;
- /**
- * Updates the user data. Changes are applied directly without confirmation flows.
- *
- * @param uid The user's unique identifier
- * @param attributes The data you want to update.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @remarks
- * **Important:** This is a server-side operation and does **not** trigger client-side
- * `onAuthStateChange` listeners. The admin API has no connection to client state.
- *
- * To sync changes to the client after calling this method:
- * 1. On the client, call `supabase.auth.refreshSession()` to fetch the updated user data
- * 2. This will trigger the `TOKEN_REFRESHED` event and notify all listeners
- *
- * @example
- * ```typescript
- * // Server-side (Edge Function)
- * const { data, error } = await supabase.auth.admin.updateUserById(
- * userId,
- * { user_metadata: { preferences: { theme: 'dark' } } }
- * )
- *
- * // Client-side (to sync the changes)
- * const { data, error } = await supabase.auth.refreshSession()
- * // onAuthStateChange listeners will now be notified with updated user
- * ```
- *
- * @see {@link GoTrueClient.refreshSession} for syncing admin changes to the client
- * @see {@link GoTrueClient.updateUser} for client-side user updates (triggers listeners automatically)
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @example Updates a user's email
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '11111111-1111-1111-1111-111111111111',
- * { email: 'new@email.com' }
- * )
- * ```
- *
- * @exampleResponse Updates a user's email
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "new@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "recovery_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Updates a user's password
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { password: 'new_password' }
- * )
- * ```
- *
- * @example Updates a user's metadata
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { user_metadata: { hello: 'world' } }
- * )
- * ```
- *
- * @example Updates a user's app_metadata
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { app_metadata: { plan: 'trial' } }
- * )
- * ```
- *
- * @example Confirms a user's email address
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { email_confirm: true }
- * )
- * ```
- *
- * @example Confirms a user's phone number
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { phone_confirm: true }
- * )
- * ```
- *
- * @example Ban a user for 100 years
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { ban_duration: '876000h' }
- * )
- * ```
- */
- updateUserById(uid: string, attributes: AdminUserAttributes): Promise;
- /**
- * Delete a user. Requires a `service_role` key.
- *
- * @param id The user id you want to remove.
- * @param shouldSoftDelete If true, then the user will be soft-deleted from the auth schema. Soft deletion allows user identification from the hashed user ID but is not reversible.
- * Defaults to false for backward compatibility.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column.
- *
- * @example Removes a user
- * ```js
- * const { data, error } = await supabase.auth.admin.deleteUser(
- * '715ed5db-f090-4b8c-a067-640ecee36aa0'
- * )
- * ```
- *
- * @exampleResponse Removes a user
- * ```json
- * {
- * "data": {
- * "user": {}
- * },
- * "error": null
- * }
- * ```
- */
- deleteUser(id: string, shouldSoftDelete?: boolean): Promise;
- private _listFactors;
- private _deleteFactor;
- /**
- * Lists all OAuth clients with optional pagination.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _listOAuthClients;
- /**
- * Creates a new OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _createOAuthClient;
- /**
- * Gets details of a specific OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _getOAuthClient;
- /**
- * Updates an existing OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _updateOAuthClient;
- /**
- * Deletes an OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _deleteOAuthClient;
- /**
- * Regenerates the secret for an OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _regenerateOAuthClientSecret;
- /**
- * Lists all custom providers with optional type filter.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _listCustomProviders;
- /**
- * Creates a new custom OIDC/OAuth provider.
- *
- * For OIDC providers, the server fetches and validates the OpenID Connect discovery document
- * from the issuer's well-known endpoint (or the provided `discovery_url`) at creation time.
- * This may return a validation error (`error_code: "validation_failed"`) if the discovery
- * document is unreachable, not valid JSON, missing required fields, or if the issuer
- * in the document does not match the expected issuer.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _createCustomProvider;
- /**
- * Gets details of a specific custom provider by identifier.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _getCustomProvider;
- /**
- * Updates an existing custom provider.
- *
- * When `issuer` or `discovery_url` is changed on an OIDC provider, the server re-fetches and
- * validates the discovery document before persisting. This may return a validation error
- * (`error_code: "validation_failed"`) if the discovery document is unreachable, invalid, or
- * the issuer does not match.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _updateCustomProvider;
- /**
- * Deletes a custom provider.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- private _deleteCustomProvider;
- /**
- * Lists all passkeys for a user.
- *
- * This function should only be called on a server. Never expose your secret key in the browser.
- *
- * Requires `auth.experimental.passkey: true`.
- */
- private _adminListPasskeys;
- /**
- * Deletes a user's passkey.
- *
- * This function should only be called on a server. Never expose your secret key in the browser.
- *
- * Requires `auth.experimental.passkey: true`.
- */
- private _adminDeletePasskey;
-}
-//# sourceMappingURL=GoTrueAdminApi.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts.map b/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts.map
deleted file mode 100644
index fe1173d..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GoTrueAdminApi.d.ts","sourceRoot":"","sources":["../../src/GoTrueAdminApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAKN,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,iBAAiB,EAKjB,UAAU,EAEV,YAAY,EACZ,mBAAmB,EAKnB,6BAA6B,EAM7B,qBAAqB,EAKrB,wBAAwB,EACzB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAA;AAErD,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,+CAA+C;IAC/C,GAAG,EAAE,iBAAiB,CAAA;IAEtB;;;OAGG;IACH,KAAK,EAAE,mBAAmB,CAAA;IAE1B,sEAAsE;IACtE,eAAe,EAAE,6BAA6B,CAAA;IAE9C;;;;OAIG;IACH,OAAO,EAAE,qBAAqB,CAAA;IAE9B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KACtB,CAAA;IACD,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;IACtB,SAAS,CAAC,YAAY,EAAE,wBAAwB,CAAA;IAEhD;;;;;;;;;;;;;;;;;;;;OAoBG;gBACS,EACV,GAAQ,EACR,OAAY,EACZ,KAAK,EACL,YAAY,GACb,EAAE;QACD,GAAG,EAAE,MAAM,CAAA;QACX,OAAO,CAAC,EAAE;YACR,CAAC,GAA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dminApi.js
deleted file mode 100644
index 30fd44a..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js
+++ /dev/null
@@ -1,1108 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const tslib_1 = require("tslib");
-const fetch_1 = require("./lib/fetch");
-const helpers_1 = require("./lib/helpers");
-const types_1 = require("./lib/types");
-const errors_1 = require("./lib/errors");
-class GoTrueAdminApi {
- /**
- * Creates an admin API client that can be used to manage users and OAuth clients.
- *
- * @example Using supabase-js (recommended)
- * ```ts
- * import { createClient } from '@supabase/supabase-js'
- *
- * const supabase = createClient('https://xyzcompany.supabase.co', 'your-secret-key')
- * const { data, error } = await supabase.auth.admin.listUsers()
- * ```
- *
- * @example Standalone import for bundle-sensitive environments
- * ```ts
- * import { GoTrueAdminApi } from '@supabase/auth-js'
- *
- * const admin = new GoTrueAdminApi({
- * url: 'https://xyzcompany.supabase.co/auth/v1',
- * headers: { Authorization: `Bearer ${process.env.SUPABASE_SECRET_KEY}` },
- * })
- * ```
- */
- constructor({ url = '', headers = {}, fetch, experimental, }) {
- this.url = url;
- this.headers = headers;
- this.fetch = (0, helpers_1.resolveFetch)(fetch);
- this.experimental = experimental !== null && experimental !== void 0 ? experimental : {};
- this.mfa = {
- listFactors: this._listFactors.bind(this),
- deleteFactor: this._deleteFactor.bind(this),
- };
- this.oauth = {
- listClients: this._listOAuthClients.bind(this),
- createClient: this._createOAuthClient.bind(this),
- getClient: this._getOAuthClient.bind(this),
- updateClient: this._updateOAuthClient.bind(this),
- deleteClient: this._deleteOAuthClient.bind(this),
- regenerateClientSecret: this._regenerateOAuthClientSecret.bind(this),
- };
- this.customProviders = {
- listProviders: this._listCustomProviders.bind(this),
- createProvider: this._createCustomProvider.bind(this),
- getProvider: this._getCustomProvider.bind(this),
- updateProvider: this._updateCustomProvider.bind(this),
- deleteProvider: this._deleteCustomProvider.bind(this),
- };
- this.passkey = {
- listPasskeys: this._adminListPasskeys.bind(this),
- deletePasskey: this._adminDeletePasskey.bind(this),
- };
- }
- /**
- * Removes a logged-in session.
- * @param jwt A valid, logged-in JWT.
- * @param scope The logout sope.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- async signOut(jwt, scope = types_1.SIGN_OUT_SCOPES[0]) {
- if (types_1.SIGN_OUT_SCOPES.indexOf(scope) < 0) {
- throw new Error(`@supabase/auth-js: Parameter scope must be one of ${types_1.SIGN_OUT_SCOPES.join(', ')}`);
- }
- try {
- await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/logout?scope=${scope}`, {
- headers: this.headers,
- jwt,
- noResolveJson: true,
- });
- return { data: null, error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Sends an invite link to an email address.
- * @param email The email address of the user.
- * @param options Additional options to be included when inviting.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - Sends an invite link to the user's email address.
- * - The `inviteUserByEmail()` method is typically used by administrators to invite users to join the application.
- * - Note that PKCE is not supported when using `inviteUserByEmail`. This is because the browser initiating the invite is often different from the browser accepting the invite which makes it difficult to provide the security guarantees required of the PKCE flow.
- *
- * @example Invite a user
- * ```js
- * const { data, error } = await supabase.auth.admin.inviteUserByEmail('email@example.com')
- * ```
- *
- * @exampleResponse Invite a user
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "invited_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmation_sent_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- */
- async inviteUserByEmail(email, options = {}) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/invite`, {
- body: { email, data: options.data },
- headers: this.headers,
- redirectTo: options.redirectTo,
- xform: fetch_1._userResponse,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { user: null }, error };
- }
- throw error;
- }
- }
- /**
- * Generates email links and OTPs to be sent via a custom email provider.
- * @param email The user's email.
- * @param options.password User password. For signup only.
- * @param options.data Optional user metadata. For signup only.
- * @param options.redirectTo The redirect url which should be appended to the generated link
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `email_change_current`, `email_change_new`, `phone_change`.
- * - `generateLink()` only generates the email link for `email_change_email` if the **Secure email change** is enabled in your project's [email auth provider settings](/dashboard/project/_/auth/providers).
- * - `generateLink()` handles the creation of the user for `signup`, `invite` and `magiclink`.
- *
- * @example Generate a signup link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'signup',
- * email: 'email@example.com',
- * password: 'secret'
- * })
- * ```
- *
- * @exampleResponse Generate a signup link
- * ```json
- * {
- * "data": {
- * "properties": {
- * "action_link": "",
- * "email_otp": "999999",
- * "hashed_token": "",
- * "verification_type": "signup"
- * },
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "email@example.com",
- * "phone": "",
- * "confirmation_sent_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "email@example.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Generate an invite link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'invite',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @example Generate a magic link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'magiclink',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @example Generate a recovery link
- * ```js
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'recovery',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @example Generate links to change current email address
- * ```js
- * // generate an email change link to be sent to the current email address
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'email_change_current',
- * email: 'current.email@example.com',
- * newEmail: 'new.email@example.com'
- * })
- *
- * // generate an email change link to be sent to the new email address
- * const { data, error } = await supabase.auth.admin.generateLink({
- * type: 'email_change_new',
- * email: 'current.email@example.com',
- * newEmail: 'new.email@example.com'
- * })
- * ```
- */
- async generateLink(params) {
- try {
- const { options } = params, rest = tslib_1.__rest(params, ["options"]);
- const body = Object.assign(Object.assign({}, rest), options);
- if ('newEmail' in rest) {
- // replace newEmail with new_email in request body
- body.new_email = rest === null || rest === void 0 ? void 0 : rest.newEmail;
- delete body['newEmail'];
- }
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/generate_link`, {
- body: body,
- headers: this.headers,
- xform: fetch_1._generateLinkResponse,
- redirectTo: options === null || options === void 0 ? void 0 : options.redirectTo,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return {
- data: {
- properties: null,
- user: null,
- },
- error,
- };
- }
- throw error;
- }
- }
- // User Admin API
- /**
- * Creates a new user.
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - To confirm the user's email address or phone number, set `email_confirm` or `phone_confirm` to true. Both arguments default to false.
- * - `createUser()` will not send a confirmation email to the user. You can use [`inviteUserByEmail()`](/docs/reference/javascript/auth-admin-inviteuserbyemail) if you want to send them an email invite instead.
- * - If you are sure that the created user's email or phone number is legitimate and verified, you can set the `email_confirm` or `phone_confirm` param to `true`.
- *
- * @example With custom user metadata
- * ```js
- * const { data, error } = await supabase.auth.admin.createUser({
- * email: 'user@email.com',
- * password: 'password',
- * user_metadata: { name: 'Yoda' }
- * })
- * ```
- *
- * @exampleResponse With custom user metadata
- * ```json
- * {
- * data: {
- * user: {
- * id: '1',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {},
- * user_metadata: {},
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "1",
- * "user_id": "1",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "phone_verified": false,
- * "sub": "1"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false,
- * }
- * }
- * error: null
- * }
- * ```
- *
- * @example Auto-confirm the user's email
- * ```js
- * const { data, error } = await supabase.auth.admin.createUser({
- * email: 'user@email.com',
- * email_confirm: true
- * })
- * ```
- *
- * @example Auto-confirm the user's phone number
- * ```js
- * const { data, error } = await supabase.auth.admin.createUser({
- * phone: '1234567890',
- * phone_confirm: true
- * })
- * ```
- */
- async createUser(attributes) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/users`, {
- body: attributes,
- headers: this.headers,
- xform: fetch_1._userResponse,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { user: null }, error };
- }
- throw error;
- }
- }
- /**
- * Get a list of users.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- * @param params An object which supports `page` and `perPage` as numbers, to alter the paginated results.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - Defaults to return 50 users per page.
- *
- * @example Get a page of users
- * ```js
- * const { data: { users }, error } = await supabase.auth.admin.listUsers()
- * ```
- *
- * @example Paginated list of users
- * ```js
- * const { data: { users }, error } = await supabase.auth.admin.listUsers({
- * page: 1,
- * perPage: 1000
- * })
- * ```
- */
- async listUsers(params) {
- var _a, _b, _c, _d, _e, _f, _g;
- try {
- const pagination = { nextPage: null, lastPage: 0, total: 0 };
- const response = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users`, {
- headers: this.headers,
- noResolveJson: true,
- query: {
- page: (_b = (_a = params === null || params === void 0 ? void 0 : params.page) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '',
- per_page: (_d = (_c = params === null || params === void 0 ? void 0 : params.perPage) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : '',
- },
- xform: fetch_1._noResolveJsonResponse,
- });
- if (response.error)
- throw response.error;
- const users = await response.json();
- const total = (_e = response.headers.get('x-total-count')) !== null && _e !== void 0 ? _e : 0;
- const links = (_g = (_f = response.headers.get('link')) === null || _f === void 0 ? void 0 : _f.split(',')) !== null && _g !== void 0 ? _g : [];
- if (links.length > 0) {
- links.forEach((link) => {
- const page = parseInt(link.split(';')[0].split('=')[1].substring(0, 1));
- const rel = JSON.parse(link.split(';')[1].split('=')[1]);
- pagination[`${rel}Page`] = page;
- });
- pagination.total = parseInt(total);
- }
- return { data: Object.assign(Object.assign({}, users), pagination), error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { users: [] }, error };
- }
- throw error;
- }
- }
- /**
- * Get user by id.
- *
- * @param uid The user's unique identifier
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - Fetches the user object from the database based on the user's id.
- * - The `getUserById()` method requires the user's id which maps to the `auth.users.id` column.
- *
- * @example Fetch the user object using the access_token jwt
- * ```js
- * const { data, error } = await supabase.auth.admin.getUserById(1)
- * ```
- *
- * @exampleResponse Fetch the user object using the access_token jwt
- * ```json
- * {
- * data: {
- * user: {
- * id: '1',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {},
- * user_metadata: {},
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "1",
- * "user_id": "1",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "phone_verified": false,
- * "sub": "1"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false,
- * }
- * }
- * error: null
- * }
- * ```
- */
- async getUserById(uid) {
- (0, helpers_1.validateUUID)(uid);
- try {
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users/${uid}`, {
- headers: this.headers,
- xform: fetch_1._userResponse,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { user: null }, error };
- }
- throw error;
- }
- }
- /**
- * Updates the user data. Changes are applied directly without confirmation flows.
- *
- * @param uid The user's unique identifier
- * @param attributes The data you want to update.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @remarks
- * **Important:** This is a server-side operation and does **not** trigger client-side
- * `onAuthStateChange` listeners. The admin API has no connection to client state.
- *
- * To sync changes to the client after calling this method:
- * 1. On the client, call `supabase.auth.refreshSession()` to fetch the updated user data
- * 2. This will trigger the `TOKEN_REFRESHED` event and notify all listeners
- *
- * @example
- * ```typescript
- * // Server-side (Edge Function)
- * const { data, error } = await supabase.auth.admin.updateUserById(
- * userId,
- * { user_metadata: { preferences: { theme: 'dark' } } }
- * )
- *
- * // Client-side (to sync the changes)
- * const { data, error } = await supabase.auth.refreshSession()
- * // onAuthStateChange listeners will now be notified with updated user
- * ```
- *
- * @see {@link GoTrueClient.refreshSession} for syncing admin changes to the client
- * @see {@link GoTrueClient.updateUser} for client-side user updates (triggers listeners automatically)
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @example Updates a user's email
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '11111111-1111-1111-1111-111111111111',
- * { email: 'new@email.com' }
- * )
- * ```
- *
- * @exampleResponse Updates a user's email
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "new@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "recovery_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Updates a user's password
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { password: 'new_password' }
- * )
- * ```
- *
- * @example Updates a user's metadata
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { user_metadata: { hello: 'world' } }
- * )
- * ```
- *
- * @example Updates a user's app_metadata
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { app_metadata: { plan: 'trial' } }
- * )
- * ```
- *
- * @example Confirms a user's email address
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { email_confirm: true }
- * )
- * ```
- *
- * @example Confirms a user's phone number
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { phone_confirm: true }
- * )
- * ```
- *
- * @example Ban a user for 100 years
- * ```js
- * const { data: user, error } = await supabase.auth.admin.updateUserById(
- * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
- * { ban_duration: '876000h' }
- * )
- * ```
- */
- async updateUserById(uid, attributes) {
- (0, helpers_1.validateUUID)(uid);
- try {
- return await (0, fetch_1._request)(this.fetch, 'PUT', `${this.url}/admin/users/${uid}`, {
- body: attributes,
- headers: this.headers,
- xform: fetch_1._userResponse,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { user: null }, error };
- }
- throw error;
- }
- }
- /**
- * Delete a user. Requires a `service_role` key.
- *
- * @param id The user id you want to remove.
- * @param shouldSoftDelete If true, then the user will be soft-deleted from the auth schema. Soft deletion allows user identification from the hashed user ID but is not reversible.
- * Defaults to false for backward compatibility.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @remarks
- * - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column.
- *
- * @example Removes a user
- * ```js
- * const { data, error } = await supabase.auth.admin.deleteUser(
- * '715ed5db-f090-4b8c-a067-640ecee36aa0'
- * )
- * ```
- *
- * @exampleResponse Removes a user
- * ```json
- * {
- * "data": {
- * "user": {}
- * },
- * "error": null
- * }
- * ```
- */
- async deleteUser(id, shouldSoftDelete = false) {
- (0, helpers_1.validateUUID)(id);
- try {
- return await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/users/${id}`, {
- headers: this.headers,
- body: {
- should_soft_delete: shouldSoftDelete,
- },
- xform: fetch_1._userResponse,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { user: null }, error };
- }
- throw error;
- }
- }
- async _listFactors(params) {
- (0, helpers_1.validateUUID)(params.userId);
- try {
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users/${params.userId}/factors`, {
- headers: this.headers,
- xform: (factors) => {
- return { data: { factors }, error: null };
- },
- });
- return { data, error };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- async _deleteFactor(params) {
- (0, helpers_1.validateUUID)(params.userId);
- (0, helpers_1.validateUUID)(params.id);
- try {
- const data = await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/users/${params.userId}/factors/${params.id}`, {
- headers: this.headers,
- });
- return { data, error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Lists all OAuth clients with optional pagination.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _listOAuthClients(params) {
- var _a, _b, _c, _d, _e, _f, _g;
- try {
- const pagination = { nextPage: null, lastPage: 0, total: 0 };
- const response = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/oauth/clients`, {
- headers: this.headers,
- noResolveJson: true,
- query: {
- page: (_b = (_a = params === null || params === void 0 ? void 0 : params.page) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '',
- per_page: (_d = (_c = params === null || params === void 0 ? void 0 : params.perPage) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : '',
- },
- xform: fetch_1._noResolveJsonResponse,
- });
- if (response.error)
- throw response.error;
- const clients = await response.json();
- const total = (_e = response.headers.get('x-total-count')) !== null && _e !== void 0 ? _e : 0;
- const links = (_g = (_f = response.headers.get('link')) === null || _f === void 0 ? void 0 : _f.split(',')) !== null && _g !== void 0 ? _g : [];
- if (links.length > 0) {
- links.forEach((link) => {
- const page = parseInt(link.split(';')[0].split('=')[1].substring(0, 1));
- const rel = JSON.parse(link.split(';')[1].split('=')[1]);
- pagination[`${rel}Page`] = page;
- });
- pagination.total = parseInt(total);
- }
- return { data: Object.assign(Object.assign({}, clients), pagination), error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { clients: [] }, error };
- }
- throw error;
- }
- }
- /**
- * Creates a new OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _createOAuthClient(params) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/oauth/clients`, {
- body: params,
- headers: this.headers,
- xform: (client) => {
- return { data: client, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Gets details of a specific OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _getOAuthClient(clientId) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/oauth/clients/${clientId}`, {
- headers: this.headers,
- xform: (client) => {
- return { data: client, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Updates an existing OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _updateOAuthClient(clientId, params) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'PUT', `${this.url}/admin/oauth/clients/${clientId}`, {
- body: params,
- headers: this.headers,
- xform: (client) => {
- return { data: client, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Deletes an OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _deleteOAuthClient(clientId) {
- try {
- await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/oauth/clients/${clientId}`, {
- headers: this.headers,
- noResolveJson: true,
- });
- return { data: null, error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Regenerates the secret for an OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _regenerateOAuthClientSecret(clientId) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/oauth/clients/${clientId}/regenerate_secret`, {
- headers: this.headers,
- xform: (client) => {
- return { data: client, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Lists all custom providers with optional type filter.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _listCustomProviders(params) {
- try {
- const query = {};
- if (params === null || params === void 0 ? void 0 : params.type) {
- query.type = params.type;
- }
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/custom-providers`, {
- headers: this.headers,
- query,
- xform: (data) => {
- var _a;
- return { data: { providers: (_a = data === null || data === void 0 ? void 0 : data.providers) !== null && _a !== void 0 ? _a : [] }, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: { providers: [] }, error };
- }
- throw error;
- }
- }
- /**
- * Creates a new custom OIDC/OAuth provider.
- *
- * For OIDC providers, the server fetches and validates the OpenID Connect discovery document
- * from the issuer's well-known endpoint (or the provided `discovery_url`) at creation time.
- * This may return a validation error (`error_code: "validation_failed"`) if the discovery
- * document is unreachable, not valid JSON, missing required fields, or if the issuer
- * in the document does not match the expected issuer.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _createCustomProvider(params) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/custom-providers`, {
- body: params,
- headers: this.headers,
- xform: (provider) => {
- return { data: provider, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Gets details of a specific custom provider by identifier.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _getCustomProvider(identifier) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/custom-providers/${identifier}`, {
- headers: this.headers,
- xform: (provider) => {
- return { data: provider, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Updates an existing custom provider.
- *
- * When `issuer` or `discovery_url` is changed on an OIDC provider, the server re-fetches and
- * validates the discovery document before persisting. This may return a validation error
- * (`error_code: "validation_failed"`) if the discovery document is unreachable, invalid, or
- * the issuer does not match.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _updateCustomProvider(identifier, params) {
- try {
- return await (0, fetch_1._request)(this.fetch, 'PUT', `${this.url}/admin/custom-providers/${identifier}`, {
- body: params,
- headers: this.headers,
- xform: (provider) => {
- return { data: provider, error: null };
- },
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Deletes a custom provider.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- */
- async _deleteCustomProvider(identifier) {
- try {
- await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/custom-providers/${identifier}`, {
- headers: this.headers,
- noResolveJson: true,
- });
- return { data: null, error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Lists all passkeys for a user.
- *
- * This function should only be called on a server. Never expose your secret key in the browser.
- *
- * Requires `auth.experimental.passkey: true`.
- */
- async _adminListPasskeys(params) {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- (0, helpers_1.validateUUID)(params.userId);
- try {
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users/${params.userId}/passkeys`, { headers: this.headers, xform: (data) => ({ data, error: null }) });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
- /**
- * Deletes a user's passkey.
- *
- * This function should only be called on a server. Never expose your secret key in the browser.
- *
- * Requires `auth.experimental.passkey: true`.
- */
- async _adminDeletePasskey(params) {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- (0, helpers_1.validateUUID)(params.userId);
- (0, helpers_1.validateUUID)(params.passkeyId);
- try {
- await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/users/${params.userId}/passkeys/${params.passkeyId}`, { headers: this.headers, noResolveJson: true });
- return { data: null, error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return { data: null, error };
- }
- throw error;
- }
- }
-}
-exports.default = GoTrueAdminApi;
-//# sourceMappingURL=GoTrueAdminApi.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js.map b/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js.map
deleted file mode 100644
index e4c2cea..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GoTrueAdminApi.js","sourceRoot":"","sources":["../../src/GoTrueAdminApi.ts"],"names":[],"mappings":";;;AAAA,uCAMoB;AACpB,2CAA4F;AAC5F,uCAgCoB;AACpB,yCAAqD;AAErD,MAAqB,cAAc;IA2BjC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAY,EACV,GAAG,GAAG,EAAE,EACR,OAAO,GAAG,EAAE,EACZ,KAAK,EACL,YAAY,GAQb;QACC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,OAAO,GAAG,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E,CAAA;YAC9B,CAAC;YACD,MAAM,KAAK,CAAA;QACb,CAAC;IACH,CAAC;CACF;AAvsCD,iCAusCC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts b/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts
deleted file mode 100644
index f896242..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts
+++ /dev/null
@@ -1,2473 +0,0 @@
-import GoTrueAdminApi from './GoTrueAdminApi';
-import { AuthError } from './lib/errors';
-import { Fetch } from './lib/fetch';
-import { Deferred } from './lib/helpers';
-import type { AuthChangeEvent, AuthFlowType, AuthOtpResponse, AuthResponse, AuthTokenResponse, AuthTokenResponsePassword, CallRefreshTokenResult, GoTrueClientOptions, GoTrueMFAApi, InitializeResult, JWK, JwtHeader, JwtPayload, LockFunc, OAuthResponse, AuthOAuthServerApi, ResendParams, Session, SignInAnonymouslyCredentials, SignInWithIdTokenCredentials, SignInWithOAuthCredentials, SignInWithPasswordCredentials, SignInWithPasswordlessCredentials, SignInWithSSO, SignOut, SignUpWithPasswordCredentials, SSOResponse, Subscription, SupportedStorage, User, UserAttributes, UserIdentity, UserResponse, VerifyOtpParams, Web3Credentials, AuthPasskeyApi, ExperimentalFeatureFlags, SignInWithPasskeyCredentials, RegisterPasskeyCredentials, AuthPasskeyRegistrationVerifyResponse, AuthPasskeyAuthenticationVerifyResponse } from './lib/types';
-export default class GoTrueClient {
- private static nextInstanceID;
- private instanceID;
- /**
- * Namespace for the GoTrue admin methods.
- * These methods should only be used in a trusted server-side environment.
- */
- admin: GoTrueAdminApi;
- /**
- * Namespace for the MFA methods.
- */
- mfa: GoTrueMFAApi;
- /**
- * Namespace for the OAuth 2.1 authorization server methods.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- * Used to implement the authorization code flow on the consent page.
- */
- oauth: AuthOAuthServerApi;
- /**
- * Namespace for passkey methods.
- * Includes lower-level two-step registration/authentication and passkey management.
- *
- * Requires `auth.experimental.passkey: true`; otherwise all methods throw.
- */
- passkey: AuthPasskeyApi;
- /**
- * The storage key used to identify the values saved in localStorage
- */
- protected storageKey: string;
- protected flowType: AuthFlowType;
- /**
- * The JWKS used for verifying asymmetric JWTs
- */
- protected get jwks(): {
- keys: JWK[];
- };
- protected set jwks(value: {
- keys: JWK[];
- });
- protected get jwks_cached_at(): number;
- protected set jwks_cached_at(value: number);
- protected autoRefreshToken: boolean;
- protected persistSession: boolean;
- protected storage: SupportedStorage;
- /**
- * @experimental
- */
- protected userStorage: SupportedStorage | null;
- protected memoryStorage: {
- [key: string]: string;
- } | null;
- protected stateChangeEmitters: Map;
- protected autoRefreshTicker: ReturnType | null;
- protected autoRefreshTickTimeout: ReturnType | null;
- protected visibilityChangedCallback: (() => Promise) | null;
- protected refreshingDeferred: Deferred | null;
- /**
- * Keeps track of the async client initialization.
- * When null or not yet resolved the auth state is `unknown`
- * Once resolved the auth state is known and it's safe to call any further client methods.
- * Keep extra care to never reject or throw uncaught errors
- */
- protected initializePromise: Promise | null;
- protected detectSessionInUrl: boolean | ((url: URL, params: {
- [parameter: string]: string;
- }) => boolean);
- protected url: string;
- protected headers: {
- [key: string]: string;
- };
- protected hasCustomAuthorizationHeader: boolean;
- protected suppressGetSessionWarning: boolean;
- protected fetch: Fetch;
- protected lock: LockFunc;
- protected lockAcquired: boolean;
- protected pendingInLock: Promise[];
- protected throwOnError: boolean;
- protected lockAcquireTimeout: number;
- /**
- * Opt-in flags for experimental features. Defaults to an empty object.
- * See `GoTrueClientOptions.experimental`.
- */
- protected experimental: ExperimentalFeatureFlags;
- /**
- * Used to broadcast state change events to other tabs listening.
- */
- protected broadcastChannel: BroadcastChannel | null;
- protected logDebugMessages: boolean;
- protected logger: (message: string, ...args: any[]) => void;
- /**
- * Create a new client for use in the browser.
- *
- * @example Using supabase-js (recommended)
- * ```ts
- * import { createClient } from '@supabase/supabase-js'
- *
- * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
- * const { data, error } = await supabase.auth.getUser()
- * ```
- *
- * @example Standalone import for bundle-sensitive environments
- * ```ts
- * import { GoTrueClient } from '@supabase/auth-js'
- *
- * const auth = new GoTrueClient({
- * url: 'https://xyzcompany.supabase.co/auth/v1',
- * headers: { apikey: 'your-publishable-key' },
- * storageKey: 'supabase-auth',
- * })
- * ```
- */
- constructor(options: GoTrueClientOptions);
- /**
- * Returns whether error throwing mode is enabled for this client.
- */
- isThrowOnErrorEnabled(): boolean;
- /**
- * Centralizes return handling with optional error throwing. When `throwOnError` is enabled
- * and the provided result contains a non-nullish error, the error is thrown instead of
- * being returned. This ensures consistent behavior across all public API methods.
- */
- private _returnResult;
- private _logPrefix;
- private _debug;
- /**
- * Initializes the client session either from the url or from storage.
- * This method is automatically called when instantiating the client, but should also be called
- * manually when checking for an error from an auth redirect (oauth, magiclink, password recovery, etc).
- *
- * @category Auth
- */
- initialize(): Promise;
- /**
- * IMPORTANT:
- * 1. Never throw in this method, as it is called from the constructor
- * 2. Never return a session from this method as it would be cached over
- * the whole lifetime of the client
- */
- private _initialize;
- /**
- * Creates a new anonymous user.
- *
- * @returns A session where the is_anonymous claim in the access token JWT set to true
- *
- * @category Auth
- *
- * @remarks
- * - Returns an anonymous user
- * - It is recommended to set up captcha for anonymous sign-ins to prevent abuse. You can pass in the captcha token in the `options` param.
- *
- * @example Create an anonymous user
- * ```js
- * const { data, error } = await supabase.auth.signInAnonymously({
- * options: {
- * captchaToken
- * }
- * });
- * ```
- *
- * @exampleResponse Create an anonymous user
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {},
- * "user_metadata": {},
- * "identities": [],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": true
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {},
- * "user_metadata": {},
- * "identities": [],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": true
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Create an anonymous user with custom user metadata
- * ```js
- * const { data, error } = await supabase.auth.signInAnonymously({
- * options: {
- * data
- * }
- * })
- * ```
- */
- signInAnonymously(credentials?: SignInAnonymouslyCredentials): Promise;
- /**
- * Creates a new user.
- *
- * Be aware that if a user account exists in the system you may get back an
- * error message that attempts to hide this information from the user.
- * This method has support for PKCE via email signups. The PKCE flow cannot be used when autoconfirm is enabled.
- *
- * @returns A logged-in session if the server has "autoconfirm" ON
- * @returns A user if the server has "autoconfirm" OFF
- *
- * @category Auth
- *
- * @remarks
- * - By default, the user needs to verify their email address before logging in. To turn this off, disable **Confirm email** in [your project](/dashboard/project/_/auth/providers).
- * - **Confirm email** determines if users need to confirm their email address after signing up.
- * - If **Confirm email** is enabled, a `user` is returned but `session` is null.
- * - If **Confirm email** is disabled, both a `user` and a `session` are returned.
- * - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration).
- * - If signUp() is called for an existing confirmed user:
- * - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.
- * - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.
- * - To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/javascript/auth-getuser).
- *
- * @example Sign up with an email and password
- * ```js
- * const { data, error } = await supabase.auth.signUp({
- * email: 'example@email.com',
- * password: 'example-password',
- * })
- * ```
- *
- * @exampleResponse Sign up with an email and password
- * ```json
- * // Some fields may be null if "confirm email" is enabled.
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Sign up with a phone number and password (SMS)
- * ```js
- * const { data, error } = await supabase.auth.signUp({
- * phone: '123456789',
- * password: 'example-password',
- * options: {
- * channel: 'sms'
- * }
- * })
- * ```
- *
- * @exampleDescription Sign up with a phone number and password (whatsapp)
- * The user will be sent a WhatsApp message which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. Note that a user will need to have a valid WhatsApp account that is linked to Twilio in order to use this feature.
- *
- * @example Sign up with a phone number and password (whatsapp)
- * ```js
- * const { data, error } = await supabase.auth.signUp({
- * phone: '123456789',
- * password: 'example-password',
- * options: {
- * channel: 'whatsapp'
- * }
- * })
- * ```
- *
- * @example Sign up with additional user metadata
- * ```js
- * const { data, error } = await supabase.auth.signUp(
- * {
- * email: 'example@email.com',
- * password: 'example-password',
- * options: {
- * data: {
- * first_name: 'John',
- * age: 27,
- * }
- * }
- * }
- * )
- * ```
- *
- * @exampleDescription Sign up with a redirect URL
- * - See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- *
- * @example Sign up with a redirect URL
- * ```js
- * const { data, error } = await supabase.auth.signUp(
- * {
- * email: 'example@email.com',
- * password: 'example-password',
- * options: {
- * emailRedirectTo: 'https://example.com/welcome'
- * }
- * }
- * )
- * ```
- */
- signUp(credentials: SignUpWithPasswordCredentials): Promise;
- /**
- * Log in an existing user with an email and password or phone and password.
- *
- * Be aware that you may get back an error message that will not distinguish
- * between the cases where the account does not exist or that the
- * email/phone and password combination is wrong or that the account can only
- * be accessed via social login.
- *
- * @category Auth
- *
- * @remarks
- * - Requires either an email and password or a phone number and password.
- *
- * @example Sign in with email and password
- * ```js
- * const { data, error } = await supabase.auth.signInWithPassword({
- * email: 'example@email.com',
- * password: 'example-password',
- * })
- * ```
- *
- * @exampleResponse Sign in with email and password
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Sign in with phone and password
- * ```js
- * const { data, error } = await supabase.auth.signInWithPassword({
- * phone: '+13334445555',
- * password: 'some-password',
- * })
- * ```
- */
- signInWithPassword(credentials: SignInWithPasswordCredentials): Promise;
- /**
- * Log in an existing user via a third-party provider.
- * This method supports the PKCE flow.
- *
- * @category Auth
- *
- * @remarks
- * - This method is used for signing in using [Social Login (OAuth) providers](/docs/guides/auth#configure-third-party-providers).
- * - It works by redirecting your application to the provider's authorization screen, before bringing back the user to your app.
- *
- * @example Sign in using a third-party provider
- * ```js
- * const { data, error } = await supabase.auth.signInWithOAuth({
- * provider: 'github'
- * })
- * ```
- *
- * @exampleResponse Sign in using a third-party provider
- * ```json
- * {
- * data: {
- * provider: 'github',
- * url:
- * },
- * error: null
- * }
- * ```
- *
- * @exampleDescription Sign in using a third-party provider with redirect
- * - When the OAuth provider successfully authenticates the user, they are redirected to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls). It does not redirect the user immediately after invoking this method.
- * - See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- *
- * @example Sign in using a third-party provider with redirect
- * ```js
- * const { data, error } = await supabase.auth.signInWithOAuth({
- * provider: 'github',
- * options: {
- * redirectTo: 'https://example.com/welcome'
- * }
- * })
- * ```
- *
- * @exampleDescription Sign in with scopes and access provider tokens
- * If you need additional access from an OAuth provider, in order to access provider specific APIs in the name of the user, you can do this by passing in the scopes the user should authorize for your application. Note that the `scopes` option takes in **a space-separated list** of scopes.
- *
- * Because OAuth sign-in often includes redirects, you should register an `onAuthStateChange` callback immediately after you create the Supabase client. This callback will listen for the presence of `provider_token` and `provider_refresh_token` properties on the `session` object and store them in local storage. The client library will emit these values **only once** immediately after the user signs in. You can then access them by looking them up in local storage, or send them to your backend servers for further processing.
- *
- * Finally, make sure you remove them from local storage on the `SIGNED_OUT` event. If the OAuth provider supports token revocation, make sure you call those APIs either from the frontend or schedule them to be called on the backend.
- *
- * @example Sign in with scopes and access provider tokens
- * ```js
- * // Register this immediately after calling createClient!
- * // Because signInWithOAuth causes a redirect, you need to fetch the
- * // provider tokens from the callback.
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (session && session.provider_token) {
- * window.localStorage.setItem('oauth_provider_token', session.provider_token)
- * }
- *
- * if (session && session.provider_refresh_token) {
- * window.localStorage.setItem('oauth_provider_refresh_token', session.provider_refresh_token)
- * }
- *
- * if (event === 'SIGNED_OUT') {
- * window.localStorage.removeItem('oauth_provider_token')
- * window.localStorage.removeItem('oauth_provider_refresh_token')
- * }
- * })
- *
- * // Call this on your Sign in with GitHub button to initiate OAuth
- * // with GitHub with the requested elevated scopes.
- * await supabase.auth.signInWithOAuth({
- * provider: 'github',
- * options: {
- * scopes: 'repo gist notifications'
- * }
- * })
- * ```
- */
- signInWithOAuth(credentials: SignInWithOAuthCredentials): Promise;
- /**
- * Log in an existing user by exchanging an Auth Code issued during the PKCE flow.
- *
- * @category Auth
- *
- * @remarks
- * - Used when `flowType` is set to `pkce` in client options.
- *
- * @example Exchange Auth Code
- * ```js
- * supabase.auth.exchangeCodeForSession('34e770dd-9ff9-416c-87fa-43b31d7ef225')
- * ```
- *
- * @exampleResponse Exchange Auth Code
- * ```json
- * {
- * "data": {
- * session: {
- * access_token: '',
- * token_type: 'bearer',
- * expires_in: 3600,
- * expires_at: 1700000000,
- * refresh_token: '',
- * user: {
- * id: '11111111-1111-1111-1111-111111111111',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com'
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {
- * "provider": "email",
- * "providers": [
- * "email",
- * ""
- * ]
- * },
- * user_metadata: {
- * email: 'email@email.com',
- * email_verified: true,
- * full_name: 'User Name',
- * iss: '',
- * name: 'User Name',
- * phone_verified: false,
- * provider_id: '',
- * sub: ''
- * },
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * {
- * "identity_id": "33333333-3333-3333-3333-333333333333",
- * "id": "",
- * "user_id": "",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "full_name": "User Name",
- * "iss": "",
- * "name": "User Name",
- * "phone_verified": false,
- * "provider_id": "",
- * "sub": ""
- * },
- * "provider": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false
- * },
- * provider_token: '',
- * provider_refresh_token: ''
- * },
- * user: {
- * id: '11111111-1111-1111-1111-111111111111',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {
- * provider: 'email',
- * providers: [
- * "email",
- * ""
- * ]
- * },
- * user_metadata: {
- * email: 'email@email.com',
- * email_verified: true,
- * full_name: 'User Name',
- * iss: '',
- * name: 'User Name',
- * phone_verified: false,
- * provider_id: '',
- * sub: ''
- * },
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * {
- * "identity_id": "33333333-3333-3333-3333-333333333333",
- * "id": "",
- * "user_id": "",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "full_name": "User Name",
- * "iss": "",
- * "name": "User Name",
- * "phone_verified": false,
- * "provider_id": "",
- * "sub": ""
- * },
- * "provider": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false
- * },
- * redirectType: null
- * },
- * "error": null
- * }
- * ```
- */
- exchangeCodeForSession(authCode: string): Promise;
- /**
- * Signs in a user by verifying a message signed by the user's private key.
- * Supports Ethereum (via Sign-In-With-Ethereum) & Solana (Sign-In-With-Solana) standards,
- * both of which derive from the EIP-4361 standard
- * With slight variation on Solana's side.
- * @reference https://eips.ethereum.org/EIPS/eip-4361
- *
- * @category Auth
- *
- * @remarks
- * - Uses a Web3 (Ethereum, Solana) wallet to sign a user in.
- * - Read up on the [potential for abuse](/docs/guides/auth/auth-web3#potential-for-abuse) before using it.
- *
- * @example Sign in with Solana or Ethereum (Window API)
- * ```js
- * // uses window.ethereum for the wallet
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'ethereum',
- * statement: 'I accept the Terms of Service at https://example.com/tos'
- * })
- *
- * // uses window.solana for the wallet
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'solana',
- * statement: 'I accept the Terms of Service at https://example.com/tos'
- * })
- * ```
- *
- * @example Sign in with Ethereum (Message and Signature)
- * ```js
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'ethereum',
- * message: '',
- * signature: '',
- * })
- * ```
- *
- * @example Sign in with Solana (Brave)
- * ```js
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'solana',
- * statement: 'I accept the Terms of Service at https://example.com/tos',
- * wallet: window.braveSolana
- * })
- * ```
- *
- * @example Sign in with Solana (Wallet Adapter)
- * ```jsx
- * function SignInButton() {
- * const wallet = useWallet()
- *
- * return (
- * <>
- * {wallet.connected ? (
- *
- * ) : (
- *
- * )}
- * >
- * )
- * }
- *
- * function App() {
- * const endpoint = clusterApiUrl('devnet')
- * const wallets = useMemo(() => [], [])
- *
- * return (
- *
- *
- *
- *
- *
- *
- *
- * )
- * }
- * ```
- */
- signInWithWeb3(credentials: Web3Credentials): Promise<{
- data: {
- session: Session;
- user: User;
- };
- error: null;
- } | {
- data: {
- session: null;
- user: null;
- };
- error: AuthError;
- }>;
- private signInWithEthereum;
- private signInWithSolana;
- private _exchangeCodeForSession;
- /**
- * Allows signing in with an OIDC ID token. The authentication provider used
- * should be enabled and configured.
- *
- * @category Auth
- *
- * @remarks
- * - Use an ID token to sign in.
- * - Especially useful when implementing sign in using native platform dialogs in mobile or desktop apps using Sign in with Apple or Sign in with Google on iOS and Android.
- * - You can also use Google's [One Tap](https://developers.google.com/identity/gsi/web/guides/display-google-one-tap) and [Automatic sign-in](https://developers.google.com/identity/gsi/web/guides/automatic-sign-in-sign-out) via this API.
- *
- * @example Sign In using ID Token
- * ```js
- * const { data, error } = await supabase.auth.signInWithIdToken({
- * provider: 'google',
- * token: 'your-id-token'
- * })
- * ```
- *
- * @exampleResponse Sign In using ID Token
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * ...
- * },
- * "user_metadata": {
- * ...
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "provider": "google",
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * ...
- * },
- * "user_metadata": {
- * ...
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "provider": "google",
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- */
- signInWithIdToken(credentials: SignInWithIdTokenCredentials): Promise;
- /**
- * Log in a user using magiclink or a one-time password (OTP).
- *
- * If the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.
- * If the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.
- * If you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins.
- *
- * Be aware that you may get back an error message that will not distinguish
- * between the cases where the account does not exist or, that the account
- * can only be accessed via social login.
- *
- * Do note that you will need to configure a Whatsapp sender on Twilio
- * if you are using phone sign in with the 'whatsapp' channel. The whatsapp
- * channel is not supported on other providers
- * at this time.
- * This method supports PKCE when an email is passed.
- *
- * @category Auth
- *
- * @remarks
- * - Requires either an email or phone number.
- * - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number.
- * - If the user doesn't exist, `signInWithOtp()` will signup the user instead. To restrict this behavior, you can set `shouldCreateUser` in `SignInWithPasswordlessCredentials.options` to `false`.
- * - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP.
- * - If you're using phone, you can configure whether you want the user to receive a OTP.
- * - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls).
- * - See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- * - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`.
- * - See our [Twilio Phone Auth Guide](/docs/guides/auth/phone-login?showSMSProvider=Twilio) for details about configuring WhatsApp sign in.
- *
- * @exampleDescription Sign in with email
- * The user will be sent an email which contains either a magiclink or a OTP or both. By default, a given user can only request a OTP once every 60 seconds.
- *
- * @example Sign in with email
- * ```js
- * const { data, error } = await supabase.auth.signInWithOtp({
- * email: 'example@email.com',
- * options: {
- * emailRedirectTo: 'https://example.com/welcome'
- * }
- * })
- * ```
- *
- * @exampleResponse Sign in with email
- * ```json
- * {
- * "data": {
- * "user": null,
- * "session": null
- * },
- * "error": null
- * }
- * ```
- *
- * @exampleDescription Sign in with SMS OTP
- * The user will be sent a SMS which contains a OTP. By default, a given user can only request a OTP once every 60 seconds.
- *
- * @example Sign in with SMS OTP
- * ```js
- * const { data, error } = await supabase.auth.signInWithOtp({
- * phone: '+13334445555',
- * })
- * ```
- *
- * @exampleDescription Sign in with WhatsApp OTP
- * The user will be sent a WhatsApp message which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. Note that a user will need to have a valid WhatsApp account that is linked to Twilio in order to use this feature.
- *
- * @example Sign in with WhatsApp OTP
- * ```js
- * const { data, error } = await supabase.auth.signInWithOtp({
- * phone: '+13334445555',
- * options: {
- * channel:'whatsapp',
- * }
- * })
- * ```
- */
- signInWithOtp(credentials: SignInWithPasswordlessCredentials): Promise;
- /**
- * Log in a user given a User supplied OTP or TokenHash received through mobile or email.
- *
- * @category Auth
- *
- * @remarks
- * - The `verifyOtp` method takes in different verification types.
- * - If a phone number is used, the type can either be:
- * 1. `sms` – Used when verifying a one-time password (OTP) sent via SMS during sign-up or sign-in.
- * 2. `phone_change` – Used when verifying an OTP sent to a new phone number during a phone number update process.
- * - If an email address is used, the type can be one of the following (note: `signup` and `magiclink` types are deprecated):
- * 1. `email` – Used when verifying an OTP sent to the user's email during sign-up or sign-in.
- * 2. `recovery` – Used when verifying an OTP sent for account recovery, typically after a password reset request.
- * 3. `invite` – Used when verifying an OTP sent as part of an invitation to join a project or organization.
- * 4. `email_change` – Used when verifying an OTP sent to a new email address during an email update process.
- * - The verification type used should be determined based on the corresponding auth method called before `verifyOtp` to sign up / sign-in a user.
- * - The `TokenHash` is contained in the [email templates](/docs/guides/auth/auth-email-templates) and can be used to sign in. You may wish to use the hash for the PKCE flow for Server Side Auth. Read [the Password-based Auth guide](/docs/guides/auth/passwords) for more details.
- *
- * @example Verify Signup One-Time Password (OTP)
- * ```js
- * const { data, error } = await supabase.auth.verifyOtp({ email, token, type: 'email'})
- * ```
- *
- * @exampleResponse Verify Signup One-Time Password (OTP)
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "recovery_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "recovery_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Verify SMS One-Time Password (OTP)
- * ```js
- * const { data, error } = await supabase.auth.verifyOtp({ phone, token, type: 'sms'})
- * ```
- *
- * @example Verify Email Auth (Token Hash)
- * ```js
- * const { data, error } = await supabase.auth.verifyOtp({ token_hash: tokenHash, type: 'email'})
- * ```
- */
- verifyOtp(params: VerifyOtpParams): Promise;
- /**
- * Attempts a single-sign on using an enterprise Identity Provider. A
- * successful SSO attempt will redirect the current page to the identity
- * provider authorization page. The redirect URL is implementation and SSO
- * protocol specific.
- *
- * You can use it by providing a SSO domain. Typically you can extract this
- * domain by asking users for their email address. If this domain is
- * registered on the Auth instance the redirect will use that organization's
- * currently active SSO Identity Provider for the login.
- *
- * If you have built an organization-specific login page, you can use the
- * organization's SSO Identity Provider UUID directly instead.
- *
- * @category Auth
- *
- * @remarks
- * - Before you can call this method you need to [establish a connection](/docs/guides/auth/sso/auth-sso-saml#managing-saml-20-connections) to an identity provider. Use the [CLI commands](/docs/reference/cli/supabase-sso) to do this.
- * - If you've associated an email domain to the identity provider, you can use the `domain` property to start a sign-in flow.
- * - In case you need to use a different way to start the authentication flow with an identity provider, you can use the `providerId` property. For example:
- * - Mapping specific user email addresses with an identity provider.
- * - Using different hints to identity the identity provider to be used by the user, like a company-specific page, IP address or other tracking information.
- *
- * @example Sign in with email domain
- * ```js
- * // You can extract the user's email domain and use it to trigger the
- * // authentication flow with the correct identity provider.
- *
- * const { data, error } = await supabase.auth.signInWithSSO({
- * domain: 'company.com'
- * })
- *
- * if (data?.url) {
- * // redirect the user to the identity provider's authentication flow
- * window.location.href = data.url
- * }
- * ```
- *
- * @example Sign in with provider UUID
- * ```js
- * // Useful when you need to map a user's sign in request according
- * // to different rules that can't use email domains.
- *
- * const { data, error } = await supabase.auth.signInWithSSO({
- * providerId: '21648a9d-8d5a-4555-a9d1-d6375dc14e92'
- * })
- *
- * if (data?.url) {
- * // redirect the user to the identity provider's authentication flow
- * window.location.href = data.url
- * }
- * ```
- */
- signInWithSSO(params: SignInWithSSO): Promise;
- /**
- * Sends a reauthentication OTP to the user's email or phone number.
- * Requires the user to be signed-in.
- *
- * @category Auth
- *
- * @remarks
- * - This method is used together with `updateUser()` when a user's password needs to be updated.
- * - If you require your user to reauthenticate before updating their password, you need to enable the **Secure password change** option in your [project's email provider settings](/dashboard/project/_/auth/providers).
- * - A user is only require to reauthenticate before updating their password if **Secure password change** is enabled and the user **hasn't recently signed in**. A user is deemed recently signed in if the session was created in the last 24 hours.
- * - This method will send a nonce to the user's email. If the user doesn't have a confirmed email address, the method will send the nonce to the user's confirmed phone number instead.
- * - After receiving the OTP, include it as the `nonce` in your `updateUser()` call to finalize the password change.
- *
- * @exampleDescription Send reauthentication nonce
- * Sends a reauthentication nonce to the user's email or phone number.
- *
- * @example Send reauthentication nonce
- * ```js
- * const { error } = await supabase.auth.reauthenticate()
- * ```
- */
- reauthenticate(): Promise;
- private _reauthenticate;
- /**
- * Resends an existing signup confirmation email, email change email, SMS OTP or phone change OTP.
- *
- * @category Auth
- *
- * @remarks
- * - Resends a signup confirmation, email change or phone change email to the user.
- * - Passwordless sign-ins can be resent by calling the `signInWithOtp()` method again.
- * - Password recovery emails can be resent by calling the `resetPasswordForEmail()` method again.
- * - This method will only resend an email or phone OTP to the user if there was an initial signup, email change or phone change request being made(note: For existing users signing in with OTP, you should use `signInWithOtp()` again to resend the OTP).
- * - You can specify a redirect url when you resend an email link using the `emailRedirectTo` option.
- *
- * @exampleDescription Resend an email signup confirmation
- * Resends the email signup confirmation to the user
- *
- * @example Resend an email signup confirmation
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'signup',
- * email: 'email@example.com',
- * options: {
- * emailRedirectTo: 'https://example.com/welcome'
- * }
- * })
- * ```
- *
- * @exampleDescription Resend a phone signup confirmation
- * Resends the phone signup confirmation email to the user
- *
- * @example Resend a phone signup confirmation
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'sms',
- * phone: '1234567890'
- * })
- * ```
- *
- * @exampleDescription Resend email change email
- * Resends the email change email to the user
- *
- * @example Resend email change email
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'email_change',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @exampleDescription Resend phone change OTP
- * Resends the phone change OTP to the user
- *
- * @example Resend phone change OTP
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'phone_change',
- * phone: '1234567890'
- * })
- * ```
- */
- resend(credentials: ResendParams): Promise;
- /**
- * Returns the session, refreshing it if necessary.
- *
- * The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out.
- *
- * **IMPORTANT:** This method loads values directly from the storage attached
- * to the client. If that storage is based on request cookies for example,
- * the values in it may not be authentic and therefore it's strongly advised
- * against using this method and its results in such circumstances. A warning
- * will be emitted if this is detected. Use {@link #getUser()} instead.
- *
- * @category Auth
- *
- * @remarks
- * - Since the introduction of [asymmetric JWT signing keys](/docs/guides/auth/signing-keys), this method is considered low-level and we encourage you to use `getClaims()` or `getUser()` instead.
- * - Retrieves the current [user session](/docs/guides/auth/sessions) from the storage medium (local storage, cookies).
- * - The session contains an access token (signed JWT), a refresh token and the user object.
- * - If the session's access token is expired or is about to expire, this method will use the refresh token to refresh the session.
- * - When using in a browser, or you've called `startAutoRefresh()` in your environment (React Native, etc.) this function always returns a valid access token without refreshing the session itself, as this is done in the background. This function returns very fast.
- * - **IMPORTANT SECURITY NOTICE:** If using an insecure storage medium, such as cookies or request headers, the user object returned by this function **must not be trusted**. Always verify the JWT using `getClaims()` or your own JWT verification library to securely establish the user's identity and access. You can also use `getUser()` to fetch the user object directly from the Auth server for this purpose.
- * - When using in a browser, this function is synchronized across all tabs using the [LockManager](https://developer.mozilla.org/en-US/docs/Web/API/LockManager) API. In other environments make sure you've defined a proper `lock` property, if necessary, to make sure there are no race conditions while the session is being refreshed.
- *
- * @example Get the session data
- * ```js
- * const { data, error } = await supabase.auth.getSession()
- * ```
- *
- * @exampleResponse Get the session data
- * ```json
- * {
- * "data": {
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- */
- getSession(): Promise<{
- data: {
- session: Session;
- };
- error: null;
- } | {
- data: {
- session: null;
- };
- error: AuthError;
- } | {
- data: {
- session: null;
- };
- error: null;
- }>;
- /**
- * Acquires a global lock based on the storage key.
- */
- private _acquireLock;
- /**
- * Use instead of {@link #getSession} inside the library. It is
- * semantically usually what you want, as getting a session involves some
- * processing afterwards that requires only one client operating on the
- * session at once across multiple tabs or processes.
- */
- private _useSession;
- /**
- * NEVER USE DIRECTLY!
- *
- * Always use {@link #_useSession}.
- */
- private __loadSession;
- /**
- * Gets the current user details if there is an existing session. This method
- * performs a network request to the Supabase Auth server, so the returned
- * value is authentic and can be used to base authorization rules on.
- *
- * @param jwt Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.
- *
- * @category Auth
- *
- * @remarks
- * - This method fetches the user object from the database instead of local session.
- * - This method is useful for checking if the user is authorized because it validates the user's access token JWT on the server.
- * - Should always be used when checking for user authorization on the server. On the client, you can instead use `getSession().session.user` for faster results. `getSession` is insecure on the server.
- *
- * @example Get the logged in user with the current existing session
- * ```js
- * const { data: { user } } = await supabase.auth.getUser()
- * ```
- *
- * @exampleResponse Get the logged in user with the current existing session
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Get the logged in user with a custom access token jwt
- * ```js
- * const { data: { user } } = await supabase.auth.getUser(jwt)
- * ```
- */
- getUser(jwt?: string): Promise;
- private _getUser;
- /**
- * Updates user data for a logged in user.
- *
- * @category Auth
- *
- * @remarks
- * - In order to use the `updateUser()` method, the user needs to be signed in first.
- * - By default, email updates sends a confirmation link to both the user's current and new email.
- * To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](/dashboard/project/_/auth/providers).
- *
- * @exampleDescription Update the email for an authenticated user
- * Sends a "Confirm Email Change" email to the new address. If **Secure Email Change** is enabled (default), confirmation is also required from the **old email** before the change is applied. To skip dual confirmation and apply the change after only the new email is verified, disable **Secure Email Change** in the [Email Auth Provider settings](/dashboard/project/_/auth/providers?provider=Email).
- *
- * @example Update the email for an authenticated user
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * email: 'new@email.com'
- * })
- * ```
- *
- * @exampleResponse Update the email for an authenticated user
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "new_email": "new@email.com",
- * "email_change_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @exampleDescription Update the phone number for an authenticated user
- * Sends a one-time password (OTP) to the new phone number.
- *
- * @example Update the phone number for an authenticated user
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * phone: '123456789'
- * })
- * ```
- *
- * @example Update the password for an authenticated user
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * password: 'new password'
- * })
- * ```
- *
- * @exampleDescription Update the user's metadata
- * Updates the user's custom metadata.
- *
- * **Note**: The `data` field maps to the `auth.users.raw_user_meta_data` column in your Supabase database. When calling `getUser()`, the data will be available as `user.user_metadata`.
- *
- * @example Update the user's metadata
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * data: { hello: 'world' }
- * })
- * ```
- *
- * @exampleDescription Update the user's password with a nonce
- * If **Secure password change** is enabled in your [project's email provider settings](/dashboard/project/_/auth/providers), updating the user's password would require a nonce if the user **hasn't recently signed in**. The nonce is sent to the user's email or phone number. A user is deemed recently signed in if the session was created in the last 24 hours.
- *
- * @example Update the user's password with a nonce
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * password: 'new password',
- * nonce: '123456'
- * })
- * ```
- */
- updateUser(attributes: UserAttributes, options?: {
- emailRedirectTo?: string | undefined;
- }): Promise;
- protected _updateUser(attributes: UserAttributes, options?: {
- emailRedirectTo?: string | undefined;
- }): Promise;
- /**
- * Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session.
- * If the refresh token or access token in the current session is invalid, an error will be thrown.
- * @param currentSession The current session that minimally contains an access token and refresh token.
- *
- * @category Auth
- *
- * @remarks
- * - This method sets the session using an `access_token` and `refresh_token`.
- * - If successful, a `SIGNED_IN` event is emitted.
- *
- * @exampleDescription Set the session
- * Sets the session data from an access_token and refresh_token, then returns an auth response or error.
- *
- * @example Set the session
- * ```js
- * const { data, error } = await supabase.auth.setSession({
- * access_token,
- * refresh_token
- * })
- * ```
- *
- * @exampleResponse Set the session
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "session": {
- * "access_token": "",
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "11111111-1111-1111-1111-111111111111",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "2024-01-01T00:00:00Z",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "token_type": "bearer",
- * "expires_in": 3500,
- * "expires_at": 1700000000
- * }
- * },
- * "error": null
- * }
- * ```
- */
- setSession(currentSession: {
- access_token: string;
- refresh_token: string;
- }): Promise;
- protected _setSession(currentSession: {
- access_token: string;
- refresh_token: string;
- }): Promise;
- /**
- * Returns a new session, regardless of expiry status.
- * Takes in an optional current session. If not passed in, then refreshSession() will attempt to retrieve it from getSession().
- * If the current session's refresh token is invalid, an error will be thrown.
- * @param currentSession The current session. If passed in, it must contain a refresh token.
- *
- * @category Auth
- *
- * @remarks
- * - This method will refresh and return a new session whether the current one is expired or not.
- *
- * @example Refresh session using the current session
- * ```js
- * const { data, error } = await supabase.auth.refreshSession()
- * const { session, user } = data
- * ```
- *
- * @exampleResponse Refresh session using the current session
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Refresh session using a refresh token
- * ```js
- * const { data, error } = await supabase.auth.refreshSession({ refresh_token })
- * const { session, user } = data
- * ```
- */
- refreshSession(currentSession?: {
- refresh_token: string;
- }): Promise;
- protected _refreshSession(currentSession?: {
- refresh_token: string;
- }): Promise;
- /**
- * Gets the session data from a URL string
- */
- private _getSessionFromURL;
- /**
- * Checks if the current URL contains parameters given by an implicit oauth grant flow (https://www.rfc-editor.org/rfc/rfc6749.html#section-4.2)
- *
- * If `detectSessionInUrl` is a function, it will be called with the URL and params to determine
- * if the URL should be processed as a Supabase auth callback. This allows users to exclude
- * URLs from other OAuth providers (e.g., Facebook Login) that also return access_token in the fragment.
- */
- private _isImplicitGrantCallback;
- /**
- * Checks if the current URL and backing storage contain parameters given by a PKCE flow
- */
- private _isPKCECallback;
- /**
- * Inside a browser context, `signOut()` will remove the logged in user from the browser session and log them out - removing all items from localstorage and then trigger a `"SIGNED_OUT"` event.
- *
- * For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`.
- * There is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason.
- *
- * If using `others` scope, no `SIGNED_OUT` event is fired!
- *
- * **Warning:** the default `scope` is `'global'`. This signs the user out of
- * **every device they are currently signed in on**, not just the current
- * tab/session. If you only want to sign the user out of the current session
- * (the behavior most other auth libraries default to), pass
- * `{ scope: 'local' }` explicitly.
- *
- * @category Auth
- *
- * @remarks
- * - In order to use the `signOut()` method, the user needs to be signed in first.
- * - By default, `signOut()` uses the **global** scope, which signs out the user
- * on every device they are signed in on (not just the current one). Pass
- * `{ scope: 'local' }` to only sign out the current session. This is
- * usually what apps want on a "Sign out" button, especially when users
- * sign in from multiple devices and do not expect signing out of one to
- * terminate the others.
- * - Since Supabase Auth uses JWTs for authentication, the access token JWT will be valid until it's expired. When the user signs out, Supabase revokes the refresh token and deletes the JWT from the client-side. This does not revoke the JWT and it will still be valid until it expires.
- *
- * @example Sign out of every device (global – default)
- * ```js
- * const { error } = await supabase.auth.signOut()
- * ```
- *
- * @example Sign out only the current session (recommended for most apps)
- * ```js
- * const { error } = await supabase.auth.signOut({ scope: 'local' })
- * ```
- *
- * @example Sign out of all other sessions, keep the current one
- * ```js
- * const { error } = await supabase.auth.signOut({ scope: 'others' })
- * ```
- */
- signOut(options?: SignOut): Promise<{
- error: AuthError | null;
- }>;
- protected _signOut({ scope }?: SignOut): Promise<{
- error: AuthError | null;
- }>;
- /**
- * Receive a notification every time an auth event happens.
- * Safe to use without an async function as callback.
- *
- * @param callback A callback function to be invoked when an auth event happens.
- */
- onAuthStateChange(callback: (event: AuthChangeEvent, session: Session | null) => void): {
- data: {
- subscription: Subscription;
- };
- };
- /**
- * Avoid using an async function inside `onAuthStateChange` as you might end
- * up with a deadlock. The callback function runs inside an exclusive lock,
- * so calling other Supabase Client APIs that also try to acquire the
- * exclusive lock, might cause a deadlock. This behavior is observable across
- * tabs. In the next major library version, this behavior will not be supported.
- *
- * Receive a notification every time an auth event happens.
- *
- * @param callback A callback function to be invoked when an auth event happens.
- * @deprecated Due to the possibility of deadlocks with async functions as callbacks, use the version without an async function.
- */
- onAuthStateChange(callback: (event: AuthChangeEvent, session: Session | null) => Promise): {
- data: {
- subscription: Subscription;
- };
- };
- private _emitInitialSession;
- /**
- * Sends a password reset request to an email address. This method supports the PKCE flow.
- *
- * @param email The email address of the user.
- * @param options.redirectTo The URL to send the user to after they click the password reset link.
- * @param options.captchaToken Verification token received when the user completes the captcha on the site.
- *
- * @category Auth
- *
- * @remarks
- * - The password reset flow consist of 2 broad steps: (i) Allow the user to login via the password reset link; (ii) Update the user's password.
- * - The `resetPasswordForEmail()` only sends a password reset link to the user's email.
- * To update the user's password, see [`updateUser()`](/docs/reference/javascript/auth-updateuser).
- * - A `PASSWORD_RECOVERY` event will be emitted when the password recovery link is clicked.
- * You can use [`onAuthStateChange()`](/docs/reference/javascript/auth-onauthstatechange) to listen and invoke a callback function on these events.
- * - When the user clicks the reset link in the email they are redirected back to your application.
- * You can configure the URL that the user is redirected to with the `redirectTo` parameter.
- * See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- * - After the user has been redirected successfully, prompt them for a new password and call `updateUser()`:
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * password: new_password
- * })
- * ```
- *
- * @example Reset password
- * ```js
- * const { data, error } = await supabase.auth.resetPasswordForEmail(email, {
- * redirectTo: 'https://example.com/update-password',
- * })
- * ```
- *
- * @exampleResponse Reset password
- * ```json
- * {
- * data: {}
- * error: null
- * }
- * ```
- *
- * @example Reset password (React)
- * ```js
- * /**
- * * Step 1: Send the user an email to get a password reset token.
- * * This email contains a link which sends the user back to your application.
- * *\/
- * const { data, error } = await supabase.auth
- * .resetPasswordForEmail('user@email.com')
- *
- * /**
- * * Step 2: Once the user is redirected back to your application,
- * * ask the user to reset their password.
- * *\/
- * useEffect(() => {
- * supabase.auth.onAuthStateChange(async (event, session) => {
- * if (event == "PASSWORD_RECOVERY") {
- * const newPassword = prompt("What would you like your new password to be?");
- * const { data, error } = await supabase.auth
- * .updateUser({ password: newPassword })
- *
- * if (data) alert("Password updated successfully!")
- * if (error) alert("There was an error updating your password.")
- * }
- * })
- * }, [])
- * ```
- */
- resetPasswordForEmail(email: string, options?: {
- redirectTo?: string;
- captchaToken?: string;
- }): Promise<{
- data: {};
- error: null;
- } | {
- data: null;
- error: AuthError;
- }>;
- /**
- * Gets all the identities linked to a user.
- *
- * @category Auth
- *
- * @remarks
- * - The user needs to be signed in to call `getUserIdentities()`.
- *
- * @example Returns a list of identities linked to the user
- * ```js
- * const { data, error } = await supabase.auth.getUserIdentities()
- * ```
- *
- * @exampleResponse Returns a list of identities linked to the user
- * ```json
- * {
- * "data": {
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "2024-01-01T00:00:00Z",
- * "user_id": "2024-01-01T00:00:00Z",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ]
- * },
- * "error": null
- * }
- * ```
- */
- getUserIdentities(): Promise<{
- data: {
- identities: UserIdentity[];
- };
- error: null;
- } | {
- data: null;
- error: AuthError;
- }>;
- /**
- * Links an oauth identity to an existing user.
- * This method supports the PKCE flow.
- */
- linkIdentity(credentials: SignInWithOAuthCredentials): Promise;
- /**
- * Links an OIDC identity to an existing user.
- */
- linkIdentity(credentials: SignInWithIdTokenCredentials): Promise;
- private linkIdentityOAuth;
- private linkIdentityIdToken;
- /**
- * Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked.
- *
- * @category Auth
- *
- * @remarks
- * - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/auth/providers).
- * - The user needs to be signed in to call `unlinkIdentity()`.
- * - The user must have at least 2 identities in order to unlink an identity.
- * - The identity to be unlinked must belong to the user.
- *
- * @example Unlink an identity
- * ```js
- * // retrieve all identities linked to a user
- * const identities = await supabase.auth.getUserIdentities()
- *
- * // find the google identity
- * const googleIdentity = identities.find(
- * identity => identity.provider === 'google'
- * )
- *
- * // unlink the google identity
- * const { error } = await supabase.auth.unlinkIdentity(googleIdentity)
- * ```
- */
- unlinkIdentity(identity: UserIdentity): Promise<{
- data: {};
- error: null;
- } | {
- data: null;
- error: AuthError;
- }>;
- /**
- * Generates a new JWT.
- * @param refreshToken A valid refresh token that was returned on login.
- */
- private _refreshAccessToken;
- private _isValidSession;
- private _handleProviderSignIn;
- /**
- * Recovers the session from LocalStorage and refreshes the token
- * Note: this method is async to accommodate for AsyncStorage e.g. in React native.
- */
- private _recoverAndRefresh;
- private _callRefreshToken;
- private _notifyAllSubscribers;
- /**
- * set currentSession and currentUser
- * process to _startAutoRefreshToken if possible
- */
- private _saveSession;
- private _removeSession;
- /**
- * Removes any registered visibilitychange callback.
- *
- * {@see #startAutoRefresh}
- * {@see #stopAutoRefresh}
- */
- private _removeVisibilityChangedCallback;
- /**
- * This is the private implementation of {@link #startAutoRefresh}. Use this
- * within the library.
- */
- private _startAutoRefresh;
- /**
- * This is the private implementation of {@link #stopAutoRefresh}. Use this
- * within the library.
- */
- private _stopAutoRefresh;
- /**
- * Starts an auto-refresh process in the background. The session is checked
- * every few seconds. Close to the time of expiration a process is started to
- * refresh the session. If refreshing fails it will be retried for as long as
- * necessary.
- *
- * If you set the {@link GoTrueClientOptions#autoRefreshToken} you don't need
- * to call this function, it will be called for you.
- *
- * On browsers the refresh process works only when the tab/window is in the
- * foreground to conserve resources as well as prevent race conditions and
- * flooding auth with requests. If you call this method any managed
- * visibility change callback will be removed and you must manage visibility
- * changes on your own.
- *
- * On non-browser platforms the refresh process works *continuously* in the
- * background, which may not be desirable. You should hook into your
- * platform's foreground indication mechanism and call these methods
- * appropriately to conserve resources.
- *
- * {@see #stopAutoRefresh}
- *
- * @category Auth
- *
- * @remarks
- * - Only useful in non-browser environments such as React Native or Electron.
- * - The Supabase Auth library automatically starts and stops proactively refreshing the session when a tab is focused or not.
- * - On non-browser platforms, such as mobile or desktop apps built with web technologies, the library is not able to effectively determine whether the application is _focused_ or not.
- * - To give this hint to the application, you should be calling this method when the app is in focus and calling `supabase.auth.stopAutoRefresh()` when it's out of focus.
- *
- * @example Start and stop auto refresh in React Native
- * ```js
- * import { AppState } from 'react-native'
- *
- * // make sure you register this only once!
- * AppState.addEventListener('change', (state) => {
- * if (state === 'active') {
- * supabase.auth.startAutoRefresh()
- * } else {
- * supabase.auth.stopAutoRefresh()
- * }
- * })
- * ```
- */
- startAutoRefresh(): Promise;
- /**
- * Stops an active auto refresh process running in the background (if any).
- *
- * If you call this method any managed visibility change callback will be
- * removed and you must manage visibility changes on your own.
- *
- * See {@link #startAutoRefresh} for more details.
- *
- * @category Auth
- *
- * @remarks
- * - Only useful in non-browser environments such as React Native or Electron.
- * - The Supabase Auth library automatically starts and stops proactively refreshing the session when a tab is focused or not.
- * - On non-browser platforms, such as mobile or desktop apps built with web technologies, the library is not able to effectively determine whether the application is _focused_ or not.
- * - When your application goes in the background or out of focus, call this method to stop the proactive refreshing of the session.
- *
- * @example Start and stop auto refresh in React Native
- * ```js
- * import { AppState } from 'react-native'
- *
- * // make sure you register this only once!
- * AppState.addEventListener('change', (state) => {
- * if (state === 'active') {
- * supabase.auth.startAutoRefresh()
- * } else {
- * supabase.auth.stopAutoRefresh()
- * }
- * })
- * ```
- */
- stopAutoRefresh(): Promise;
- /**
- * Runs the auto refresh token tick.
- */
- private _autoRefreshTokenTick;
- /**
- * Registers callbacks on the browser / platform, which in-turn run
- * algorithms when the browser window/tab are in foreground. On non-browser
- * platforms it assumes always foreground.
- */
- private _handleVisibilityChange;
- /**
- * Callback registered with `window.addEventListener('visibilitychange')`.
- */
- private _onVisibilityChanged;
- /**
- * Generates the relevant login URL for a third-party provider.
- * @param options.redirectTo A URL or mobile address to send the user to after they are confirmed.
- * @param options.scopes A space-separated list of scopes granted to the OAuth application.
- * @param options.queryParams An object of key-value pairs containing query parameters granted to the OAuth application.
- */
- private _getUrlForProvider;
- private _unenroll;
- /**
- * {@see GoTrueMFAApi#enroll}
- */
- private _enroll;
- /**
- * {@see GoTrueMFAApi#verify}
- */
- private _verify;
- /**
- * {@see GoTrueMFAApi#challenge}
- */
- private _challenge;
- /**
- * {@see GoTrueMFAApi#challengeAndVerify}
- */
- private _challengeAndVerify;
- /**
- * {@see GoTrueMFAApi#listFactors}
- */
- private _listFactors;
- /**
- * {@see GoTrueMFAApi#getAuthenticatorAssuranceLevel}
- */
- private _getAuthenticatorAssuranceLevel;
- /**
- * Retrieves details about an OAuth authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * Returns authorization details including client info, scopes, and user information.
- * If the response includes only a redirect_url field, it means consent was already given - the caller
- * should handle the redirect manually if needed.
- */
- private _getAuthorizationDetails;
- /**
- * Approves an OAuth authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- private _approveAuthorization;
- /**
- * Denies an OAuth authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- private _denyAuthorization;
- /**
- * Lists all OAuth grants that the authenticated user has authorized.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- private _listOAuthGrants;
- /**
- * Revokes a user's OAuth grant for a specific client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- private _revokeOAuthGrant;
- private fetchJwk;
- /**
- * Extracts the JWT claims present in the access token by first verifying the
- * JWT against the server's JSON Web Key Set endpoint
- * `/.well-known/jwks.json` which is often cached, resulting in significantly
- * faster responses. Prefer this method over {@link #getUser} which always
- * sends a request to the Auth server for each JWT.
- *
- * If the project is not using an asymmetric JWT signing key (like ECC or
- * RSA) it always sends a request to the Auth server (similar to {@link
- * #getUser}) to verify the JWT.
- *
- * @param jwt An optional specific JWT you wish to verify, not the one you
- * can obtain from {@link #getSession}.
- * @param options Various additional options that allow you to customize the
- * behavior of this method.
- *
- * @category Auth
- *
- * @remarks
- * - Parses the user's [access token](/docs/guides/auth/sessions#access-token-jwt-claims) as a [JSON Web Token (JWT)](/docs/guides/auth/jwts) and returns its components if valid and not expired.
- * - If your project is using asymmetric JWT signing keys, then the verification is done locally usually without a network request using the [WebCrypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API).
- * - A network request is sent to your project's JWT signing key discovery endpoint `https://project-id.supabase.co/auth/v1/.well-known/jwks.json`, which is cached locally. If your environment is ephemeral, such as a Lambda function that is destroyed after every request, a network request will be sent for each new invocation. Supabase provides a network-edge cache providing fast responses for these situations.
- * - If the user's access token is about to expire when calling this function, the user's session will first be refreshed before validating the JWT.
- * - If your project is using a symmetric secret to sign the JWT, it always sends a request similar to `getUser()` to validate the JWT at the server before returning the decoded token. This is also used if the WebCrypto API is not available in the environment. Make sure you polyfill it in such situations.
- * - The returned claims can be customized per project using the [Custom Access Token Hook](/docs/guides/auth/auth-hooks/custom-access-token-hook).
- *
- * @example Get JWT claims, header and signature
- * ```js
- * const { data, error } = await supabase.auth.getClaims()
- * ```
- *
- * @exampleResponse Get JWT claims, header and signature
- * ```json
- * {
- * "data": {
- * "claims": {
- * "aal": "aal1",
- * "amr": [{
- * "method": "email",
- * "timestamp": 1715766000
- * }],
- * "app_metadata": {},
- * "aud": "authenticated",
- * "email": "example@email.com",
- * "exp": 1715769600,
- * "iat": 1715766000,
- * "is_anonymous": false,
- * "iss": "https://project-id.supabase.co/auth/v1",
- * "phone": "+13334445555",
- * "role": "authenticated",
- * "session_id": "11111111-1111-1111-1111-111111111111",
- * "sub": "11111111-1111-1111-1111-111111111111",
- * "user_metadata": {}
- * },
- * "header": {
- * "alg": "RS256",
- * "typ": "JWT",
- * "kid": "11111111-1111-1111-1111-111111111111"
- * },
- * "signature": [/** Uint8Array *\/],
- * },
- * "error": null
- * }
- * ```
- */
- getClaims(jwt?: string, options?: {
- /**
- * @deprecated Please use options.jwks instead.
- */
- keys?: JWK[];
- /** If set to `true` the `exp` claim will not be validated against the current time. */
- allowExpired?: boolean;
- /** If set, this JSON Web Key Set is going to have precedence over the cached value available on the server. */
- jwks?: {
- keys: JWK[];
- };
- }): Promise<{
- data: {
- claims: JwtPayload;
- header: JwtHeader;
- signature: Uint8Array;
- };
- error: null;
- } | {
- data: null;
- error: AuthError;
- } | {
- data: null;
- error: null;
- }>;
- /**
- * Sign in with a passkey. Handles the full WebAuthn ceremony:
- * 1. Fetches authentication challenge from server
- * 2. Prompts user via navigator.credentials.get()
- * 3. Verifies credential with server and creates session
- *
- * Requires `auth.experimental.passkey: true`.
- *
- * @category Auth
- */
- signInWithPasskey(credentials?: SignInWithPasskeyCredentials): Promise;
- /**
- * Register a passkey for the current authenticated user. Handles the full WebAuthn ceremony:
- * 1. Fetches registration challenge from server
- * 2. Prompts user via navigator.credentials.create()
- * 3. Verifies credential with server
- *
- * Requires an active session. Requires `auth.experimental.passkey: true`.
- *
- * @category Auth
- */
- registerPasskey(credentials?: RegisterPasskeyCredentials): Promise;
- /**
- * Start passkey registration for the current authenticated user.
- * Returns WebAuthn credential creation options to pass to navigator.credentials.create().
- */
- private _startPasskeyRegistration;
- /**
- * Verify passkey registration with the credential response.
- * The credentialResponse should be the serialized output of navigator.credentials.create().
- */
- private _verifyPasskeyRegistration;
- /**
- * Start passkey authentication.
- * Returns WebAuthn credential request options to pass to navigator.credentials.get().
- */
- private _startPasskeyAuthentication;
- /**
- * Verify passkey authentication and create a session.
- * The credential should be the serialized output of navigator.credentials.get().
- */
- private _verifyPasskeyAuthentication;
- /**
- * List all passkeys for the current user.
- */
- private _listPasskeys;
- /**
- * Update a passkey.
- */
- private _updatePasskey;
- /**
- * Delete a passkey.
- */
- private _deletePasskey;
-}
-//# sourceMappingURL=GoTrueClient.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts.map b/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts.map
deleted file mode 100644
index 4c52658..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GoTrueClient.d.ts","sourceRoot":"","sources":["../../src/GoTrueClient.ts"],"names":[],"mappings":"AAAA,OAAO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;YAAC,SAAS,EAAE,UAAU,CAAA;SAAE,CAAA;QACtE,KAAK,EAAE,IAAI,CAAA;KACZ,GACD;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,GAChC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,IAAI,CAAA;KAAE,CAC9B;IAsFD;;;;;;;;;OASG;IACG,iBAAiB,CACrB,WAAW,CAAC,EAAE,4BAA4B,GACzC,OAAO,CAAC,uCAAuC,CAAC;IA8CnD;;;;;;;;;OASG;IACG,eAAe,CACnB,WAAW,CAAC,EAAE,0BAA0B,GACvC,OAAO,CAAC,qCAAqC,CAAC;IA4CjD;;;OAGG;YACW,yBAAyB;IAqCvC;;;OAGG;YACW,0BAA0B;IA0CxC;;;OAGG;YACW,2BAA2B;IA4BzC;;;OAGG;YACW,4BAA4B;IAkC1C;;OAEG;YACW,aAAa;IAgC3B;;OAEG;YACW,cAAc;IAqC5B;;OAEG;YACW,cAAc;CAoC7B"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js b/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js
deleted file mode 100644
index b614897..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js
+++ /dev/null
@@ -1,5217 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const tslib_1 = require("tslib");
-const GoTrueAdminApi_1 = tslib_1.__importDefault(require("./GoTrueAdminApi"));
-const constants_1 = require("./lib/constants");
-const errors_1 = require("./lib/errors");
-const fetch_1 = require("./lib/fetch");
-const helpers_1 = require("./lib/helpers");
-const local_storage_1 = require("./lib/local-storage");
-const locks_1 = require("./lib/locks");
-const polyfills_1 = require("./lib/polyfills");
-const version_1 = require("./lib/version");
-const base64url_1 = require("./lib/base64url");
-const ethereum_1 = require("./lib/web3/ethereum");
-const webauthn_1 = require("./lib/webauthn");
-(0, polyfills_1.polyfillGlobalThis)(); // Make "globalThis" available
-const DEFAULT_OPTIONS = {
- url: constants_1.GOTRUE_URL,
- storageKey: constants_1.STORAGE_KEY,
- autoRefreshToken: true,
- persistSession: true,
- detectSessionInUrl: true,
- headers: constants_1.DEFAULT_HEADERS,
- flowType: 'implicit',
- debug: false,
- hasCustomAuthorizationHeader: false,
- throwOnError: false,
- lockAcquireTimeout: 5000, // 5 seconds
- skipAutoInitialize: false,
- experimental: {},
-};
-async function lockNoOp(name, acquireTimeout, fn) {
- return await fn();
-}
-/**
- * Caches JWKS values for all clients created in the same environment. This is
- * especially useful for shared-memory execution environments such as Vercel's
- * Fluid Compute, AWS Lambda or Supabase's Edge Functions. Regardless of how
- * many clients are created, if they share the same storage key they will use
- * the same JWKS cache, significantly speeding up getClaims() with asymmetric
- * JWTs.
- */
-const GLOBAL_JWKS = {};
-class GoTrueClient {
- /**
- * The JWKS used for verifying asymmetric JWTs
- */
- get jwks() {
- var _a, _b;
- return (_b = (_a = GLOBAL_JWKS[this.storageKey]) === null || _a === void 0 ? void 0 : _a.jwks) !== null && _b !== void 0 ? _b : { keys: [] };
- }
- set jwks(value) {
- GLOBAL_JWKS[this.storageKey] = Object.assign(Object.assign({}, GLOBAL_JWKS[this.storageKey]), { jwks: value });
- }
- get jwks_cached_at() {
- var _a, _b;
- return (_b = (_a = GLOBAL_JWKS[this.storageKey]) === null || _a === void 0 ? void 0 : _a.cachedAt) !== null && _b !== void 0 ? _b : Number.MIN_SAFE_INTEGER;
- }
- set jwks_cached_at(value) {
- GLOBAL_JWKS[this.storageKey] = Object.assign(Object.assign({}, GLOBAL_JWKS[this.storageKey]), { cachedAt: value });
- }
- /**
- * Create a new client for use in the browser.
- *
- * @example Using supabase-js (recommended)
- * ```ts
- * import { createClient } from '@supabase/supabase-js'
- *
- * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
- * const { data, error } = await supabase.auth.getUser()
- * ```
- *
- * @example Standalone import for bundle-sensitive environments
- * ```ts
- * import { GoTrueClient } from '@supabase/auth-js'
- *
- * const auth = new GoTrueClient({
- * url: 'https://xyzcompany.supabase.co/auth/v1',
- * headers: { apikey: 'your-publishable-key' },
- * storageKey: 'supabase-auth',
- * })
- * ```
- */
- constructor(options) {
- var _a, _b, _c, _d;
- /**
- * @experimental
- */
- this.userStorage = null;
- this.memoryStorage = null;
- this.stateChangeEmitters = new Map();
- this.autoRefreshTicker = null;
- this.autoRefreshTickTimeout = null;
- this.visibilityChangedCallback = null;
- this.refreshingDeferred = null;
- /**
- * Keeps track of the async client initialization.
- * When null or not yet resolved the auth state is `unknown`
- * Once resolved the auth state is known and it's safe to call any further client methods.
- * Keep extra care to never reject or throw uncaught errors
- */
- this.initializePromise = null;
- this.detectSessionInUrl = true;
- this.hasCustomAuthorizationHeader = false;
- this.suppressGetSessionWarning = false;
- this.lockAcquired = false;
- this.pendingInLock = [];
- /**
- * Used to broadcast state change events to other tabs listening.
- */
- this.broadcastChannel = null;
- this.logger = console.log;
- const settings = Object.assign(Object.assign({}, DEFAULT_OPTIONS), options);
- this.storageKey = settings.storageKey;
- this.instanceID = (_a = GoTrueClient.nextInstanceID[this.storageKey]) !== null && _a !== void 0 ? _a : 0;
- GoTrueClient.nextInstanceID[this.storageKey] = this.instanceID + 1;
- this.logDebugMessages = !!settings.debug;
- if (typeof settings.debug === 'function') {
- this.logger = settings.debug;
- }
- if (this.instanceID > 0 && (0, helpers_1.isBrowser)()) {
- const message = `${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;
- console.warn(message);
- if (this.logDebugMessages) {
- console.trace(message);
- }
- }
- this.persistSession = settings.persistSession;
- this.autoRefreshToken = settings.autoRefreshToken;
- this.experimental = (_b = settings.experimental) !== null && _b !== void 0 ? _b : {};
- this.admin = new GoTrueAdminApi_1.default({
- url: settings.url,
- headers: settings.headers,
- fetch: settings.fetch,
- experimental: this.experimental,
- });
- this.url = settings.url;
- this.headers = settings.headers;
- this.fetch = (0, helpers_1.resolveFetch)(settings.fetch);
- this.lock = settings.lock || lockNoOp;
- this.detectSessionInUrl = settings.detectSessionInUrl;
- this.flowType = settings.flowType;
- this.hasCustomAuthorizationHeader = settings.hasCustomAuthorizationHeader;
- this.throwOnError = settings.throwOnError;
- this.lockAcquireTimeout = settings.lockAcquireTimeout;
- if (settings.lock) {
- this.lock = settings.lock;
- }
- else if (this.persistSession && (0, helpers_1.isBrowser)() && ((_c = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _c === void 0 ? void 0 : _c.locks)) {
- this.lock = locks_1.navigatorLock;
- }
- else {
- this.lock = lockNoOp;
- }
- if (!this.jwks) {
- this.jwks = { keys: [] };
- this.jwks_cached_at = Number.MIN_SAFE_INTEGER;
- }
- this.mfa = {
- verify: this._verify.bind(this),
- enroll: this._enroll.bind(this),
- unenroll: this._unenroll.bind(this),
- challenge: this._challenge.bind(this),
- listFactors: this._listFactors.bind(this),
- challengeAndVerify: this._challengeAndVerify.bind(this),
- getAuthenticatorAssuranceLevel: this._getAuthenticatorAssuranceLevel.bind(this),
- webauthn: new webauthn_1.WebAuthnApi(this),
- };
- this.oauth = {
- getAuthorizationDetails: this._getAuthorizationDetails.bind(this),
- approveAuthorization: this._approveAuthorization.bind(this),
- denyAuthorization: this._denyAuthorization.bind(this),
- listGrants: this._listOAuthGrants.bind(this),
- revokeGrant: this._revokeOAuthGrant.bind(this),
- };
- this.passkey = {
- startRegistration: this._startPasskeyRegistration.bind(this),
- verifyRegistration: this._verifyPasskeyRegistration.bind(this),
- startAuthentication: this._startPasskeyAuthentication.bind(this),
- verifyAuthentication: this._verifyPasskeyAuthentication.bind(this),
- list: this._listPasskeys.bind(this),
- update: this._updatePasskey.bind(this),
- delete: this._deletePasskey.bind(this),
- };
- if (this.persistSession) {
- if (settings.storage) {
- this.storage = settings.storage;
- }
- else {
- if ((0, helpers_1.supportsLocalStorage)()) {
- this.storage = globalThis.localStorage;
- }
- else {
- this.memoryStorage = {};
- this.storage = (0, local_storage_1.memoryLocalStorageAdapter)(this.memoryStorage);
- }
- }
- if (settings.userStorage) {
- this.userStorage = settings.userStorage;
- }
- }
- else {
- this.memoryStorage = {};
- this.storage = (0, local_storage_1.memoryLocalStorageAdapter)(this.memoryStorage);
- }
- if ((0, helpers_1.isBrowser)() && globalThis.BroadcastChannel && this.persistSession && this.storageKey) {
- try {
- this.broadcastChannel = new globalThis.BroadcastChannel(this.storageKey);
- }
- catch (e) {
- console.error('Failed to create a new BroadcastChannel, multi-tab state changes will not be available', e);
- }
- (_d = this.broadcastChannel) === null || _d === void 0 ? void 0 : _d.addEventListener('message', async (event) => {
- this._debug('received broadcast notification from other tab or client', event);
- try {
- await this._notifyAllSubscribers(event.data.event, event.data.session, false); // broadcast = false so we don't get an endless loop of messages
- }
- catch (error) {
- this._debug('#broadcastChannel', 'error', error);
- }
- });
- }
- // Only auto-initialize if not explicitly disabled. Skipped in SSR contexts
- // where initialization timing must be controlled. All public methods have
- // lazy initialization, so the client remains fully functional.
- if (!settings.skipAutoInitialize) {
- this.initialize().catch((error) => {
- this._debug('#initialize()', 'error', error);
- });
- }
- }
- /**
- * Returns whether error throwing mode is enabled for this client.
- */
- isThrowOnErrorEnabled() {
- return this.throwOnError;
- }
- /**
- * Centralizes return handling with optional error throwing. When `throwOnError` is enabled
- * and the provided result contains a non-nullish error, the error is thrown instead of
- * being returned. This ensures consistent behavior across all public API methods.
- */
- _returnResult(result) {
- if (this.throwOnError && result && result.error) {
- throw result.error;
- }
- return result;
- }
- _logPrefix() {
- return ('GoTrueClient@' +
- `${this.storageKey}:${this.instanceID} (${version_1.version}) ${new Date().toISOString()}`);
- }
- _debug(...args) {
- if (this.logDebugMessages) {
- this.logger(this._logPrefix(), ...args);
- }
- return this;
- }
- /**
- * Initializes the client session either from the url or from storage.
- * This method is automatically called when instantiating the client, but should also be called
- * manually when checking for an error from an auth redirect (oauth, magiclink, password recovery, etc).
- *
- * @category Auth
- */
- async initialize() {
- if (this.initializePromise) {
- return await this.initializePromise;
- }
- this.initializePromise = (async () => {
- return await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._initialize();
- });
- })();
- return await this.initializePromise;
- }
- /**
- * IMPORTANT:
- * 1. Never throw in this method, as it is called from the constructor
- * 2. Never return a session from this method as it would be cached over
- * the whole lifetime of the client
- */
- async _initialize() {
- var _a;
- try {
- let params = {};
- let callbackUrlType = 'none';
- if ((0, helpers_1.isBrowser)()) {
- params = (0, helpers_1.parseParametersFromURL)(window.location.href);
- if (this._isImplicitGrantCallback(params)) {
- callbackUrlType = 'implicit';
- }
- else if (await this._isPKCECallback(params)) {
- callbackUrlType = 'pkce';
- }
- }
- /**
- * Attempt to get the session from the URL only if these conditions are fulfilled
- *
- * Note: If the URL isn't one of the callback url types (implicit or pkce),
- * then there could be an existing session so we don't want to prematurely remove it
- */
- if ((0, helpers_1.isBrowser)() && this.detectSessionInUrl && callbackUrlType !== 'none') {
- const { data, error } = await this._getSessionFromURL(params, callbackUrlType);
- if (error) {
- this._debug('#_initialize()', 'error detecting session from URL', error);
- if ((0, errors_1.isAuthImplicitGrantRedirectError)(error)) {
- const errorCode = (_a = error.details) === null || _a === void 0 ? void 0 : _a.code;
- if (errorCode === 'identity_already_exists' ||
- errorCode === 'identity_not_found' ||
- errorCode === 'single_identity_not_deletable') {
- return { error };
- }
- }
- // Don't remove existing session on URL login failure.
- // A failed attempt (e.g. reused magic link) shouldn't invalidate a valid session.
- return { error };
- }
- const { session, redirectType } = data;
- this._debug('#_initialize()', 'detected session in URL', session, 'redirect type', redirectType);
- await this._saveSession(session);
- setTimeout(async () => {
- if (redirectType === 'recovery') {
- await this._notifyAllSubscribers('PASSWORD_RECOVERY', session);
- }
- else {
- await this._notifyAllSubscribers('SIGNED_IN', session);
- }
- }, 0);
- return { error: null };
- }
- // no login attempt via callback url try to recover session from storage
- await this._recoverAndRefresh();
- return { error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ error });
- }
- return this._returnResult({
- error: new errors_1.AuthUnknownError('Unexpected error during initialization', error),
- });
- }
- finally {
- await this._handleVisibilityChange();
- this._debug('#_initialize()', 'end');
- }
- }
- /**
- * Creates a new anonymous user.
- *
- * @returns A session where the is_anonymous claim in the access token JWT set to true
- *
- * @category Auth
- *
- * @remarks
- * - Returns an anonymous user
- * - It is recommended to set up captcha for anonymous sign-ins to prevent abuse. You can pass in the captcha token in the `options` param.
- *
- * @example Create an anonymous user
- * ```js
- * const { data, error } = await supabase.auth.signInAnonymously({
- * options: {
- * captchaToken
- * }
- * });
- * ```
- *
- * @exampleResponse Create an anonymous user
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {},
- * "user_metadata": {},
- * "identities": [],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": true
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {},
- * "user_metadata": {},
- * "identities": [],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": true
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Create an anonymous user with custom user metadata
- * ```js
- * const { data, error } = await supabase.auth.signInAnonymously({
- * options: {
- * data
- * }
- * })
- * ```
- */
- async signInAnonymously(credentials) {
- var _a, _b, _c;
- try {
- const res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/signup`, {
- headers: this.headers,
- body: {
- data: (_b = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.options) === null || _a === void 0 ? void 0 : _a.data) !== null && _b !== void 0 ? _b : {},
- gotrue_meta_security: { captcha_token: (_c = credentials === null || credentials === void 0 ? void 0 : credentials.options) === null || _c === void 0 ? void 0 : _c.captchaToken },
- },
- xform: fetch_1._sessionResponse,
- });
- const { data, error } = res;
- if (error || !data) {
- return this._returnResult({ data: { user: null, session: null }, error: error });
- }
- const session = data.session;
- const user = data.user;
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', session);
- }
- return this._returnResult({ data: { user, session }, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Creates a new user.
- *
- * Be aware that if a user account exists in the system you may get back an
- * error message that attempts to hide this information from the user.
- * This method has support for PKCE via email signups. The PKCE flow cannot be used when autoconfirm is enabled.
- *
- * @returns A logged-in session if the server has "autoconfirm" ON
- * @returns A user if the server has "autoconfirm" OFF
- *
- * @category Auth
- *
- * @remarks
- * - By default, the user needs to verify their email address before logging in. To turn this off, disable **Confirm email** in [your project](/dashboard/project/_/auth/providers).
- * - **Confirm email** determines if users need to confirm their email address after signing up.
- * - If **Confirm email** is enabled, a `user` is returned but `session` is null.
- * - If **Confirm email** is disabled, both a `user` and a `session` are returned.
- * - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration).
- * - If signUp() is called for an existing confirmed user:
- * - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.
- * - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.
- * - To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/javascript/auth-getuser).
- *
- * @example Sign up with an email and password
- * ```js
- * const { data, error } = await supabase.auth.signUp({
- * email: 'example@email.com',
- * password: 'example-password',
- * })
- * ```
- *
- * @exampleResponse Sign up with an email and password
- * ```json
- * // Some fields may be null if "confirm email" is enabled.
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Sign up with a phone number and password (SMS)
- * ```js
- * const { data, error } = await supabase.auth.signUp({
- * phone: '123456789',
- * password: 'example-password',
- * options: {
- * channel: 'sms'
- * }
- * })
- * ```
- *
- * @exampleDescription Sign up with a phone number and password (whatsapp)
- * The user will be sent a WhatsApp message which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. Note that a user will need to have a valid WhatsApp account that is linked to Twilio in order to use this feature.
- *
- * @example Sign up with a phone number and password (whatsapp)
- * ```js
- * const { data, error } = await supabase.auth.signUp({
- * phone: '123456789',
- * password: 'example-password',
- * options: {
- * channel: 'whatsapp'
- * }
- * })
- * ```
- *
- * @example Sign up with additional user metadata
- * ```js
- * const { data, error } = await supabase.auth.signUp(
- * {
- * email: 'example@email.com',
- * password: 'example-password',
- * options: {
- * data: {
- * first_name: 'John',
- * age: 27,
- * }
- * }
- * }
- * )
- * ```
- *
- * @exampleDescription Sign up with a redirect URL
- * - See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- *
- * @example Sign up with a redirect URL
- * ```js
- * const { data, error } = await supabase.auth.signUp(
- * {
- * email: 'example@email.com',
- * password: 'example-password',
- * options: {
- * emailRedirectTo: 'https://example.com/welcome'
- * }
- * }
- * )
- * ```
- */
- async signUp(credentials) {
- var _a, _b, _c;
- try {
- let res;
- if ('email' in credentials) {
- const { email, password, options } = credentials;
- let codeChallenge = null;
- let codeChallengeMethod = null;
- if (this.flowType === 'pkce') {
- ;
- [codeChallenge, codeChallengeMethod] = await (0, helpers_1.getCodeChallengeAndMethod)(this.storage, this.storageKey);
- }
- res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/signup`, {
- headers: this.headers,
- redirectTo: options === null || options === void 0 ? void 0 : options.emailRedirectTo,
- body: {
- email,
- password,
- data: (_a = options === null || options === void 0 ? void 0 : options.data) !== null && _a !== void 0 ? _a : {},
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- code_challenge: codeChallenge,
- code_challenge_method: codeChallengeMethod,
- },
- xform: fetch_1._sessionResponse,
- });
- }
- else if ('phone' in credentials) {
- const { phone, password, options } = credentials;
- res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/signup`, {
- headers: this.headers,
- body: {
- phone,
- password,
- data: (_b = options === null || options === void 0 ? void 0 : options.data) !== null && _b !== void 0 ? _b : {},
- channel: (_c = options === null || options === void 0 ? void 0 : options.channel) !== null && _c !== void 0 ? _c : 'sms',
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- xform: fetch_1._sessionResponse,
- });
- }
- else {
- throw new errors_1.AuthInvalidCredentialsError('You must provide either an email or phone number and a password');
- }
- const { data, error } = res;
- if (error || !data) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- return this._returnResult({ data: { user: null, session: null }, error: error });
- }
- const session = data.session;
- const user = data.user;
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', session);
- }
- return this._returnResult({ data: { user, session }, error: null });
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Log in an existing user with an email and password or phone and password.
- *
- * Be aware that you may get back an error message that will not distinguish
- * between the cases where the account does not exist or that the
- * email/phone and password combination is wrong or that the account can only
- * be accessed via social login.
- *
- * @category Auth
- *
- * @remarks
- * - Requires either an email and password or a phone number and password.
- *
- * @example Sign in with email and password
- * ```js
- * const { data, error } = await supabase.auth.signInWithPassword({
- * email: 'example@email.com',
- * password: 'example-password',
- * })
- * ```
- *
- * @exampleResponse Sign in with email and password
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {},
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Sign in with phone and password
- * ```js
- * const { data, error } = await supabase.auth.signInWithPassword({
- * phone: '+13334445555',
- * password: 'some-password',
- * })
- * ```
- */
- async signInWithPassword(credentials) {
- try {
- let res;
- if ('email' in credentials) {
- const { email, password, options } = credentials;
- res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=password`, {
- headers: this.headers,
- body: {
- email,
- password,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- xform: fetch_1._sessionResponsePassword,
- });
- }
- else if ('phone' in credentials) {
- const { phone, password, options } = credentials;
- res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=password`, {
- headers: this.headers,
- body: {
- phone,
- password,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- xform: fetch_1._sessionResponsePassword,
- });
- }
- else {
- throw new errors_1.AuthInvalidCredentialsError('You must provide either an email or phone number and a password');
- }
- const { data, error } = res;
- if (error) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- else if (!data || !data.session || !data.user) {
- const invalidTokenError = new errors_1.AuthInvalidTokenResponseError();
- return this._returnResult({ data: { user: null, session: null }, error: invalidTokenError });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', data.session);
- }
- return this._returnResult({
- data: Object.assign({ user: data.user, session: data.session }, (data.weak_password ? { weakPassword: data.weak_password } : null)),
- error,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Log in an existing user via a third-party provider.
- * This method supports the PKCE flow.
- *
- * @category Auth
- *
- * @remarks
- * - This method is used for signing in using [Social Login (OAuth) providers](/docs/guides/auth#configure-third-party-providers).
- * - It works by redirecting your application to the provider's authorization screen, before bringing back the user to your app.
- *
- * @example Sign in using a third-party provider
- * ```js
- * const { data, error } = await supabase.auth.signInWithOAuth({
- * provider: 'github'
- * })
- * ```
- *
- * @exampleResponse Sign in using a third-party provider
- * ```json
- * {
- * data: {
- * provider: 'github',
- * url:
- * },
- * error: null
- * }
- * ```
- *
- * @exampleDescription Sign in using a third-party provider with redirect
- * - When the OAuth provider successfully authenticates the user, they are redirected to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls). It does not redirect the user immediately after invoking this method.
- * - See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- *
- * @example Sign in using a third-party provider with redirect
- * ```js
- * const { data, error } = await supabase.auth.signInWithOAuth({
- * provider: 'github',
- * options: {
- * redirectTo: 'https://example.com/welcome'
- * }
- * })
- * ```
- *
- * @exampleDescription Sign in with scopes and access provider tokens
- * If you need additional access from an OAuth provider, in order to access provider specific APIs in the name of the user, you can do this by passing in the scopes the user should authorize for your application. Note that the `scopes` option takes in **a space-separated list** of scopes.
- *
- * Because OAuth sign-in often includes redirects, you should register an `onAuthStateChange` callback immediately after you create the Supabase client. This callback will listen for the presence of `provider_token` and `provider_refresh_token` properties on the `session` object and store them in local storage. The client library will emit these values **only once** immediately after the user signs in. You can then access them by looking them up in local storage, or send them to your backend servers for further processing.
- *
- * Finally, make sure you remove them from local storage on the `SIGNED_OUT` event. If the OAuth provider supports token revocation, make sure you call those APIs either from the frontend or schedule them to be called on the backend.
- *
- * @example Sign in with scopes and access provider tokens
- * ```js
- * // Register this immediately after calling createClient!
- * // Because signInWithOAuth causes a redirect, you need to fetch the
- * // provider tokens from the callback.
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (session && session.provider_token) {
- * window.localStorage.setItem('oauth_provider_token', session.provider_token)
- * }
- *
- * if (session && session.provider_refresh_token) {
- * window.localStorage.setItem('oauth_provider_refresh_token', session.provider_refresh_token)
- * }
- *
- * if (event === 'SIGNED_OUT') {
- * window.localStorage.removeItem('oauth_provider_token')
- * window.localStorage.removeItem('oauth_provider_refresh_token')
- * }
- * })
- *
- * // Call this on your Sign in with GitHub button to initiate OAuth
- * // with GitHub with the requested elevated scopes.
- * await supabase.auth.signInWithOAuth({
- * provider: 'github',
- * options: {
- * scopes: 'repo gist notifications'
- * }
- * })
- * ```
- */
- async signInWithOAuth(credentials) {
- var _a, _b, _c, _d;
- return await this._handleProviderSignIn(credentials.provider, {
- redirectTo: (_a = credentials.options) === null || _a === void 0 ? void 0 : _a.redirectTo,
- scopes: (_b = credentials.options) === null || _b === void 0 ? void 0 : _b.scopes,
- queryParams: (_c = credentials.options) === null || _c === void 0 ? void 0 : _c.queryParams,
- skipBrowserRedirect: (_d = credentials.options) === null || _d === void 0 ? void 0 : _d.skipBrowserRedirect,
- });
- }
- /**
- * Log in an existing user by exchanging an Auth Code issued during the PKCE flow.
- *
- * @category Auth
- *
- * @remarks
- * - Used when `flowType` is set to `pkce` in client options.
- *
- * @example Exchange Auth Code
- * ```js
- * supabase.auth.exchangeCodeForSession('34e770dd-9ff9-416c-87fa-43b31d7ef225')
- * ```
- *
- * @exampleResponse Exchange Auth Code
- * ```json
- * {
- * "data": {
- * session: {
- * access_token: '',
- * token_type: 'bearer',
- * expires_in: 3600,
- * expires_at: 1700000000,
- * refresh_token: '',
- * user: {
- * id: '11111111-1111-1111-1111-111111111111',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com'
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {
- * "provider": "email",
- * "providers": [
- * "email",
- * ""
- * ]
- * },
- * user_metadata: {
- * email: 'email@email.com',
- * email_verified: true,
- * full_name: 'User Name',
- * iss: '',
- * name: 'User Name',
- * phone_verified: false,
- * provider_id: '',
- * sub: ''
- * },
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * {
- * "identity_id": "33333333-3333-3333-3333-333333333333",
- * "id": "",
- * "user_id": "",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "full_name": "User Name",
- * "iss": "",
- * "name": "User Name",
- * "phone_verified": false,
- * "provider_id": "",
- * "sub": ""
- * },
- * "provider": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false
- * },
- * provider_token: '',
- * provider_refresh_token: ''
- * },
- * user: {
- * id: '11111111-1111-1111-1111-111111111111',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {
- * provider: 'email',
- * providers: [
- * "email",
- * ""
- * ]
- * },
- * user_metadata: {
- * email: 'email@email.com',
- * email_verified: true,
- * full_name: 'User Name',
- * iss: '',
- * name: 'User Name',
- * phone_verified: false,
- * provider_id: '',
- * sub: ''
- * },
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * {
- * "identity_id": "33333333-3333-3333-3333-333333333333",
- * "id": "",
- * "user_id": "",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "full_name": "User Name",
- * "iss": "",
- * "name": "User Name",
- * "phone_verified": false,
- * "provider_id": "",
- * "sub": ""
- * },
- * "provider": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false
- * },
- * redirectType: null
- * },
- * "error": null
- * }
- * ```
- */
- async exchangeCodeForSession(authCode) {
- await this.initializePromise;
- return this._acquireLock(this.lockAcquireTimeout, async () => {
- return this._exchangeCodeForSession(authCode);
- });
- }
- /**
- * Signs in a user by verifying a message signed by the user's private key.
- * Supports Ethereum (via Sign-In-With-Ethereum) & Solana (Sign-In-With-Solana) standards,
- * both of which derive from the EIP-4361 standard
- * With slight variation on Solana's side.
- * @reference https://eips.ethereum.org/EIPS/eip-4361
- *
- * @category Auth
- *
- * @remarks
- * - Uses a Web3 (Ethereum, Solana) wallet to sign a user in.
- * - Read up on the [potential for abuse](/docs/guides/auth/auth-web3#potential-for-abuse) before using it.
- *
- * @example Sign in with Solana or Ethereum (Window API)
- * ```js
- * // uses window.ethereum for the wallet
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'ethereum',
- * statement: 'I accept the Terms of Service at https://example.com/tos'
- * })
- *
- * // uses window.solana for the wallet
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'solana',
- * statement: 'I accept the Terms of Service at https://example.com/tos'
- * })
- * ```
- *
- * @example Sign in with Ethereum (Message and Signature)
- * ```js
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'ethereum',
- * message: '',
- * signature: '',
- * })
- * ```
- *
- * @example Sign in with Solana (Brave)
- * ```js
- * const { data, error } = await supabase.auth.signInWithWeb3({
- * chain: 'solana',
- * statement: 'I accept the Terms of Service at https://example.com/tos',
- * wallet: window.braveSolana
- * })
- * ```
- *
- * @example Sign in with Solana (Wallet Adapter)
- * ```jsx
- * function SignInButton() {
- * const wallet = useWallet()
- *
- * return (
- * <>
- * {wallet.connected ? (
- *
- * ) : (
- *
- * )}
- * >
- * )
- * }
- *
- * function App() {
- * const endpoint = clusterApiUrl('devnet')
- * const wallets = useMemo(() => [], [])
- *
- * return (
- *
- *
- *
- *
- *
- *
- *
- * )
- * }
- * ```
- */
- async signInWithWeb3(credentials) {
- const { chain } = credentials;
- switch (chain) {
- case 'ethereum':
- return await this.signInWithEthereum(credentials);
- case 'solana':
- return await this.signInWithSolana(credentials);
- default:
- throw new Error(`@supabase/auth-js: Unsupported chain "${chain}"`);
- }
- }
- async signInWithEthereum(credentials) {
- var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m;
- // TODO: flatten type
- let message;
- let signature;
- if ('message' in credentials) {
- message = credentials.message;
- signature = credentials.signature;
- }
- else {
- const { chain, wallet, statement, options } = credentials;
- let resolvedWallet;
- if (!(0, helpers_1.isBrowser)()) {
- if (typeof wallet !== 'object' || !(options === null || options === void 0 ? void 0 : options.url)) {
- throw new Error('@supabase/auth-js: Both wallet and url must be specified in non-browser environments.');
- }
- resolvedWallet = wallet;
- }
- else if (typeof wallet === 'object') {
- resolvedWallet = wallet;
- }
- else {
- const windowAny = window;
- if ('ethereum' in windowAny &&
- typeof windowAny.ethereum === 'object' &&
- 'request' in windowAny.ethereum &&
- typeof windowAny.ethereum.request === 'function') {
- resolvedWallet = windowAny.ethereum;
- }
- else {
- throw new Error(`@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.`);
- }
- }
- const url = new URL((_a = options === null || options === void 0 ? void 0 : options.url) !== null && _a !== void 0 ? _a : window.location.href);
- const accounts = await resolvedWallet
- .request({
- method: 'eth_requestAccounts',
- })
- .then((accs) => accs)
- .catch(() => {
- throw new Error(`@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid`);
- });
- if (!accounts || accounts.length === 0) {
- throw new Error(`@supabase/auth-js: No accounts available. Please ensure the wallet is connected.`);
- }
- const address = (0, ethereum_1.getAddress)(accounts[0]);
- let chainId = (_b = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _b === void 0 ? void 0 : _b.chainId;
- if (!chainId) {
- const chainIdHex = await resolvedWallet.request({
- method: 'eth_chainId',
- });
- chainId = (0, ethereum_1.fromHex)(chainIdHex);
- }
- const siweMessage = {
- domain: url.host,
- address: address,
- statement: statement,
- uri: url.href,
- version: '1',
- chainId: chainId,
- nonce: (_c = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _c === void 0 ? void 0 : _c.nonce,
- issuedAt: (_f = (_d = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _d === void 0 ? void 0 : _d.issuedAt) !== null && _f !== void 0 ? _f : new Date(),
- expirationTime: (_g = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _g === void 0 ? void 0 : _g.expirationTime,
- notBefore: (_h = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _h === void 0 ? void 0 : _h.notBefore,
- requestId: (_j = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _j === void 0 ? void 0 : _j.requestId,
- resources: (_k = options === null || options === void 0 ? void 0 : options.signInWithEthereum) === null || _k === void 0 ? void 0 : _k.resources,
- };
- message = (0, ethereum_1.createSiweMessage)(siweMessage);
- // Sign message
- signature = (await resolvedWallet.request({
- method: 'personal_sign',
- params: [(0, ethereum_1.toHex)(message), address],
- }));
- }
- try {
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=web3`, {
- headers: this.headers,
- body: Object.assign({ chain: 'ethereum', message,
- signature }, (((_l = credentials.options) === null || _l === void 0 ? void 0 : _l.captchaToken)
- ? { gotrue_meta_security: { captcha_token: (_m = credentials.options) === null || _m === void 0 ? void 0 : _m.captchaToken } }
- : null)),
- xform: fetch_1._sessionResponse,
- });
- if (error) {
- throw error;
- }
- if (!data || !data.session || !data.user) {
- const invalidTokenError = new errors_1.AuthInvalidTokenResponseError();
- return this._returnResult({ data: { user: null, session: null }, error: invalidTokenError });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', data.session);
- }
- return this._returnResult({ data: Object.assign({}, data), error });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- async signInWithSolana(credentials) {
- var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o;
- let message;
- let signature;
- if ('message' in credentials) {
- message = credentials.message;
- signature = credentials.signature;
- }
- else {
- const { chain, wallet, statement, options } = credentials;
- let resolvedWallet;
- if (!(0, helpers_1.isBrowser)()) {
- if (typeof wallet !== 'object' || !(options === null || options === void 0 ? void 0 : options.url)) {
- throw new Error('@supabase/auth-js: Both wallet and url must be specified in non-browser environments.');
- }
- resolvedWallet = wallet;
- }
- else if (typeof wallet === 'object') {
- resolvedWallet = wallet;
- }
- else {
- const windowAny = window;
- if ('solana' in windowAny &&
- typeof windowAny.solana === 'object' &&
- (('signIn' in windowAny.solana && typeof windowAny.solana.signIn === 'function') ||
- ('signMessage' in windowAny.solana &&
- typeof windowAny.solana.signMessage === 'function'))) {
- resolvedWallet = windowAny.solana;
- }
- else {
- throw new Error(`@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.`);
- }
- }
- const url = new URL((_a = options === null || options === void 0 ? void 0 : options.url) !== null && _a !== void 0 ? _a : window.location.href);
- if ('signIn' in resolvedWallet && resolvedWallet.signIn) {
- const output = await resolvedWallet.signIn(Object.assign(Object.assign(Object.assign({ issuedAt: new Date().toISOString() }, options === null || options === void 0 ? void 0 : options.signInWithSolana), {
- // non-overridable properties
- version: '1', domain: url.host, uri: url.href }), (statement ? { statement } : null)));
- let outputToProcess;
- if (Array.isArray(output) && output[0] && typeof output[0] === 'object') {
- outputToProcess = output[0];
- }
- else if (output &&
- typeof output === 'object' &&
- 'signedMessage' in output &&
- 'signature' in output) {
- outputToProcess = output;
- }
- else {
- throw new Error('@supabase/auth-js: Wallet method signIn() returned unrecognized value');
- }
- if ('signedMessage' in outputToProcess &&
- 'signature' in outputToProcess &&
- (typeof outputToProcess.signedMessage === 'string' ||
- outputToProcess.signedMessage instanceof Uint8Array) &&
- outputToProcess.signature instanceof Uint8Array) {
- message =
- typeof outputToProcess.signedMessage === 'string'
- ? outputToProcess.signedMessage
- : new TextDecoder().decode(outputToProcess.signedMessage);
- signature = outputToProcess.signature;
- }
- else {
- throw new Error('@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields');
- }
- }
- else {
- if (!('signMessage' in resolvedWallet) ||
- typeof resolvedWallet.signMessage !== 'function' ||
- !('publicKey' in resolvedWallet) ||
- typeof resolvedWallet !== 'object' ||
- !resolvedWallet.publicKey ||
- !('toBase58' in resolvedWallet.publicKey) ||
- typeof resolvedWallet.publicKey.toBase58 !== 'function') {
- throw new Error('@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API');
- }
- message = [
- `${url.host} wants you to sign in with your Solana account:`,
- resolvedWallet.publicKey.toBase58(),
- ...(statement ? ['', statement, ''] : ['']),
- 'Version: 1',
- `URI: ${url.href}`,
- `Issued At: ${(_c = (_b = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _b === void 0 ? void 0 : _b.issuedAt) !== null && _c !== void 0 ? _c : new Date().toISOString()}`,
- ...(((_d = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _d === void 0 ? void 0 : _d.notBefore)
- ? [`Not Before: ${options.signInWithSolana.notBefore}`]
- : []),
- ...(((_f = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _f === void 0 ? void 0 : _f.expirationTime)
- ? [`Expiration Time: ${options.signInWithSolana.expirationTime}`]
- : []),
- ...(((_g = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _g === void 0 ? void 0 : _g.chainId)
- ? [`Chain ID: ${options.signInWithSolana.chainId}`]
- : []),
- ...(((_h = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _h === void 0 ? void 0 : _h.nonce) ? [`Nonce: ${options.signInWithSolana.nonce}`] : []),
- ...(((_j = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _j === void 0 ? void 0 : _j.requestId)
- ? [`Request ID: ${options.signInWithSolana.requestId}`]
- : []),
- ...(((_l = (_k = options === null || options === void 0 ? void 0 : options.signInWithSolana) === null || _k === void 0 ? void 0 : _k.resources) === null || _l === void 0 ? void 0 : _l.length)
- ? [
- 'Resources',
- ...options.signInWithSolana.resources.map((resource) => `- ${resource}`),
- ]
- : []),
- ].join('\n');
- const maybeSignature = await resolvedWallet.signMessage(new TextEncoder().encode(message), 'utf8');
- if (!maybeSignature || !(maybeSignature instanceof Uint8Array)) {
- throw new Error('@supabase/auth-js: Wallet signMessage() API returned an recognized value');
- }
- signature = maybeSignature;
- }
- }
- try {
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=web3`, {
- headers: this.headers,
- body: Object.assign({ chain: 'solana', message, signature: (0, base64url_1.bytesToBase64URL)(signature) }, (((_m = credentials.options) === null || _m === void 0 ? void 0 : _m.captchaToken)
- ? { gotrue_meta_security: { captcha_token: (_o = credentials.options) === null || _o === void 0 ? void 0 : _o.captchaToken } }
- : null)),
- xform: fetch_1._sessionResponse,
- });
- if (error) {
- throw error;
- }
- if (!data || !data.session || !data.user) {
- const invalidTokenError = new errors_1.AuthInvalidTokenResponseError();
- return this._returnResult({ data: { user: null, session: null }, error: invalidTokenError });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', data.session);
- }
- return this._returnResult({ data: Object.assign({}, data), error });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- async _exchangeCodeForSession(authCode) {
- const storageItem = await (0, helpers_1.getItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- const [codeVerifier, redirectType] = (storageItem !== null && storageItem !== void 0 ? storageItem : '').split('/');
- try {
- if (!codeVerifier && this.flowType === 'pkce') {
- throw new errors_1.AuthPKCECodeVerifierMissingError();
- }
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=pkce`, {
- headers: this.headers,
- body: {
- auth_code: authCode,
- code_verifier: codeVerifier,
- },
- xform: fetch_1._sessionResponse,
- });
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if (error) {
- throw error;
- }
- if (!data || !data.session || !data.user) {
- const invalidTokenError = new errors_1.AuthInvalidTokenResponseError();
- return this._returnResult({
- data: { user: null, session: null, redirectType: null },
- error: invalidTokenError,
- });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers(redirectType === 'recovery' ? 'PASSWORD_RECOVERY' : 'SIGNED_IN', data.session);
- }
- return this._returnResult({ data: Object.assign(Object.assign({}, data), { redirectType: redirectType !== null && redirectType !== void 0 ? redirectType : null }), error });
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({
- data: { user: null, session: null, redirectType: null },
- error,
- });
- }
- throw error;
- }
- }
- /**
- * Allows signing in with an OIDC ID token. The authentication provider used
- * should be enabled and configured.
- *
- * @category Auth
- *
- * @remarks
- * - Use an ID token to sign in.
- * - Especially useful when implementing sign in using native platform dialogs in mobile or desktop apps using Sign in with Apple or Sign in with Google on iOS and Android.
- * - You can also use Google's [One Tap](https://developers.google.com/identity/gsi/web/guides/display-google-one-tap) and [Automatic sign-in](https://developers.google.com/identity/gsi/web/guides/automatic-sign-in-sign-out) via this API.
- *
- * @example Sign In using ID Token
- * ```js
- * const { data, error } = await supabase.auth.signInWithIdToken({
- * provider: 'google',
- * token: 'your-id-token'
- * })
- * ```
- *
- * @exampleResponse Sign In using ID Token
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * ...
- * },
- * "user_metadata": {
- * ...
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "provider": "google",
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * ...
- * },
- * "user_metadata": {
- * ...
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "provider": "google",
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- */
- async signInWithIdToken(credentials) {
- try {
- const { options, provider, token, access_token, nonce } = credentials;
- const res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=id_token`, {
- headers: this.headers,
- body: {
- provider,
- id_token: token,
- access_token,
- nonce,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- xform: fetch_1._sessionResponse,
- });
- const { data, error } = res;
- if (error) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- else if (!data || !data.session || !data.user) {
- const invalidTokenError = new errors_1.AuthInvalidTokenResponseError();
- return this._returnResult({ data: { user: null, session: null }, error: invalidTokenError });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', data.session);
- }
- return this._returnResult({ data, error });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Log in a user using magiclink or a one-time password (OTP).
- *
- * If the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.
- * If the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.
- * If you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins.
- *
- * Be aware that you may get back an error message that will not distinguish
- * between the cases where the account does not exist or, that the account
- * can only be accessed via social login.
- *
- * Do note that you will need to configure a Whatsapp sender on Twilio
- * if you are using phone sign in with the 'whatsapp' channel. The whatsapp
- * channel is not supported on other providers
- * at this time.
- * This method supports PKCE when an email is passed.
- *
- * @category Auth
- *
- * @remarks
- * - Requires either an email or phone number.
- * - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number.
- * - If the user doesn't exist, `signInWithOtp()` will signup the user instead. To restrict this behavior, you can set `shouldCreateUser` in `SignInWithPasswordlessCredentials.options` to `false`.
- * - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP.
- * - If you're using phone, you can configure whether you want the user to receive a OTP.
- * - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls).
- * - See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- * - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`.
- * - See our [Twilio Phone Auth Guide](/docs/guides/auth/phone-login?showSMSProvider=Twilio) for details about configuring WhatsApp sign in.
- *
- * @exampleDescription Sign in with email
- * The user will be sent an email which contains either a magiclink or a OTP or both. By default, a given user can only request a OTP once every 60 seconds.
- *
- * @example Sign in with email
- * ```js
- * const { data, error } = await supabase.auth.signInWithOtp({
- * email: 'example@email.com',
- * options: {
- * emailRedirectTo: 'https://example.com/welcome'
- * }
- * })
- * ```
- *
- * @exampleResponse Sign in with email
- * ```json
- * {
- * "data": {
- * "user": null,
- * "session": null
- * },
- * "error": null
- * }
- * ```
- *
- * @exampleDescription Sign in with SMS OTP
- * The user will be sent a SMS which contains a OTP. By default, a given user can only request a OTP once every 60 seconds.
- *
- * @example Sign in with SMS OTP
- * ```js
- * const { data, error } = await supabase.auth.signInWithOtp({
- * phone: '+13334445555',
- * })
- * ```
- *
- * @exampleDescription Sign in with WhatsApp OTP
- * The user will be sent a WhatsApp message which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. Note that a user will need to have a valid WhatsApp account that is linked to Twilio in order to use this feature.
- *
- * @example Sign in with WhatsApp OTP
- * ```js
- * const { data, error } = await supabase.auth.signInWithOtp({
- * phone: '+13334445555',
- * options: {
- * channel:'whatsapp',
- * }
- * })
- * ```
- */
- async signInWithOtp(credentials) {
- var _a, _b, _c, _d, _f;
- try {
- if ('email' in credentials) {
- const { email, options } = credentials;
- let codeChallenge = null;
- let codeChallengeMethod = null;
- if (this.flowType === 'pkce') {
- ;
- [codeChallenge, codeChallengeMethod] = await (0, helpers_1.getCodeChallengeAndMethod)(this.storage, this.storageKey);
- }
- const { error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/otp`, {
- headers: this.headers,
- body: {
- email,
- data: (_a = options === null || options === void 0 ? void 0 : options.data) !== null && _a !== void 0 ? _a : {},
- create_user: (_b = options === null || options === void 0 ? void 0 : options.shouldCreateUser) !== null && _b !== void 0 ? _b : true,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- code_challenge: codeChallenge,
- code_challenge_method: codeChallengeMethod,
- },
- redirectTo: options === null || options === void 0 ? void 0 : options.emailRedirectTo,
- });
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- if ('phone' in credentials) {
- const { phone, options } = credentials;
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/otp`, {
- headers: this.headers,
- body: {
- phone,
- data: (_c = options === null || options === void 0 ? void 0 : options.data) !== null && _c !== void 0 ? _c : {},
- create_user: (_d = options === null || options === void 0 ? void 0 : options.shouldCreateUser) !== null && _d !== void 0 ? _d : true,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- channel: (_f = options === null || options === void 0 ? void 0 : options.channel) !== null && _f !== void 0 ? _f : 'sms',
- },
- });
- return this._returnResult({
- data: { user: null, session: null, messageId: data === null || data === void 0 ? void 0 : data.message_id },
- error,
- });
- }
- throw new errors_1.AuthInvalidCredentialsError('You must provide either an email or phone number.');
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Log in a user given a User supplied OTP or TokenHash received through mobile or email.
- *
- * @category Auth
- *
- * @remarks
- * - The `verifyOtp` method takes in different verification types.
- * - If a phone number is used, the type can either be:
- * 1. `sms` – Used when verifying a one-time password (OTP) sent via SMS during sign-up or sign-in.
- * 2. `phone_change` – Used when verifying an OTP sent to a new phone number during a phone number update process.
- * - If an email address is used, the type can be one of the following (note: `signup` and `magiclink` types are deprecated):
- * 1. `email` – Used when verifying an OTP sent to the user's email during sign-up or sign-in.
- * 2. `recovery` – Used when verifying an OTP sent for account recovery, typically after a password reset request.
- * 3. `invite` – Used when verifying an OTP sent as part of an invitation to join a project or organization.
- * 4. `email_change` – Used when verifying an OTP sent to a new email address during an email update process.
- * - The verification type used should be determined based on the corresponding auth method called before `verifyOtp` to sign up / sign-in a user.
- * - The `TokenHash` is contained in the [email templates](/docs/guides/auth/auth-email-templates) and can be used to sign in. You may wish to use the hash for the PKCE flow for Server Side Auth. Read [the Password-based Auth guide](/docs/guides/auth/passwords) for more details.
- *
- * @example Verify Signup One-Time Password (OTP)
- * ```js
- * const { data, error } = await supabase.auth.verifyOtp({ email, token, type: 'email'})
- * ```
- *
- * @exampleResponse Verify Signup One-Time Password (OTP)
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "recovery_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "recovery_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Verify SMS One-Time Password (OTP)
- * ```js
- * const { data, error } = await supabase.auth.verifyOtp({ phone, token, type: 'sms'})
- * ```
- *
- * @example Verify Email Auth (Token Hash)
- * ```js
- * const { data, error } = await supabase.auth.verifyOtp({ token_hash: tokenHash, type: 'email'})
- * ```
- */
- async verifyOtp(params) {
- var _a, _b;
- try {
- let redirectTo = undefined;
- let captchaToken = undefined;
- if ('options' in params) {
- redirectTo = (_a = params.options) === null || _a === void 0 ? void 0 : _a.redirectTo;
- captchaToken = (_b = params.options) === null || _b === void 0 ? void 0 : _b.captchaToken;
- }
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/verify`, {
- headers: this.headers,
- body: Object.assign(Object.assign({}, params), { gotrue_meta_security: { captcha_token: captchaToken } }),
- redirectTo,
- xform: fetch_1._sessionResponse,
- });
- if (error) {
- throw error;
- }
- if (!data) {
- const tokenVerificationError = new Error('An error occurred on token verification.');
- throw tokenVerificationError;
- }
- const session = data.session;
- const user = data.user;
- if (session === null || session === void 0 ? void 0 : session.access_token) {
- await this._saveSession(session);
- await this._notifyAllSubscribers(params.type == 'recovery' ? 'PASSWORD_RECOVERY' : 'SIGNED_IN', session);
- }
- return this._returnResult({ data: { user, session }, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Attempts a single-sign on using an enterprise Identity Provider. A
- * successful SSO attempt will redirect the current page to the identity
- * provider authorization page. The redirect URL is implementation and SSO
- * protocol specific.
- *
- * You can use it by providing a SSO domain. Typically you can extract this
- * domain by asking users for their email address. If this domain is
- * registered on the Auth instance the redirect will use that organization's
- * currently active SSO Identity Provider for the login.
- *
- * If you have built an organization-specific login page, you can use the
- * organization's SSO Identity Provider UUID directly instead.
- *
- * @category Auth
- *
- * @remarks
- * - Before you can call this method you need to [establish a connection](/docs/guides/auth/sso/auth-sso-saml#managing-saml-20-connections) to an identity provider. Use the [CLI commands](/docs/reference/cli/supabase-sso) to do this.
- * - If you've associated an email domain to the identity provider, you can use the `domain` property to start a sign-in flow.
- * - In case you need to use a different way to start the authentication flow with an identity provider, you can use the `providerId` property. For example:
- * - Mapping specific user email addresses with an identity provider.
- * - Using different hints to identity the identity provider to be used by the user, like a company-specific page, IP address or other tracking information.
- *
- * @example Sign in with email domain
- * ```js
- * // You can extract the user's email domain and use it to trigger the
- * // authentication flow with the correct identity provider.
- *
- * const { data, error } = await supabase.auth.signInWithSSO({
- * domain: 'company.com'
- * })
- *
- * if (data?.url) {
- * // redirect the user to the identity provider's authentication flow
- * window.location.href = data.url
- * }
- * ```
- *
- * @example Sign in with provider UUID
- * ```js
- * // Useful when you need to map a user's sign in request according
- * // to different rules that can't use email domains.
- *
- * const { data, error } = await supabase.auth.signInWithSSO({
- * providerId: '21648a9d-8d5a-4555-a9d1-d6375dc14e92'
- * })
- *
- * if (data?.url) {
- * // redirect the user to the identity provider's authentication flow
- * window.location.href = data.url
- * }
- * ```
- */
- async signInWithSSO(params) {
- var _a, _b, _c, _d, _f;
- try {
- let codeChallenge = null;
- let codeChallengeMethod = null;
- if (this.flowType === 'pkce') {
- ;
- [codeChallenge, codeChallengeMethod] = await (0, helpers_1.getCodeChallengeAndMethod)(this.storage, this.storageKey);
- }
- const result = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/sso`, {
- body: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ('providerId' in params ? { provider_id: params.providerId } : null)), ('domain' in params ? { domain: params.domain } : null)), { redirect_to: (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.redirectTo) !== null && _b !== void 0 ? _b : undefined }), (((_c = params === null || params === void 0 ? void 0 : params.options) === null || _c === void 0 ? void 0 : _c.captchaToken)
- ? { gotrue_meta_security: { captcha_token: params.options.captchaToken } }
- : null)), { skip_http_redirect: true, code_challenge: codeChallenge, code_challenge_method: codeChallengeMethod }),
- headers: this.headers,
- xform: fetch_1._ssoResponse,
- });
- // Automatically redirect in browser unless skipBrowserRedirect is true
- if (((_d = result.data) === null || _d === void 0 ? void 0 : _d.url) && (0, helpers_1.isBrowser)() && !((_f = params.options) === null || _f === void 0 ? void 0 : _f.skipBrowserRedirect)) {
- window.location.assign(result.data.url);
- }
- return this._returnResult(result);
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Sends a reauthentication OTP to the user's email or phone number.
- * Requires the user to be signed-in.
- *
- * @category Auth
- *
- * @remarks
- * - This method is used together with `updateUser()` when a user's password needs to be updated.
- * - If you require your user to reauthenticate before updating their password, you need to enable the **Secure password change** option in your [project's email provider settings](/dashboard/project/_/auth/providers).
- * - A user is only require to reauthenticate before updating their password if **Secure password change** is enabled and the user **hasn't recently signed in**. A user is deemed recently signed in if the session was created in the last 24 hours.
- * - This method will send a nonce to the user's email. If the user doesn't have a confirmed email address, the method will send the nonce to the user's confirmed phone number instead.
- * - After receiving the OTP, include it as the `nonce` in your `updateUser()` call to finalize the password change.
- *
- * @exampleDescription Send reauthentication nonce
- * Sends a reauthentication nonce to the user's email or phone number.
- *
- * @example Send reauthentication nonce
- * ```js
- * const { error } = await supabase.auth.reauthenticate()
- * ```
- */
- async reauthenticate() {
- await this.initializePromise;
- return await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._reauthenticate();
- });
- }
- async _reauthenticate() {
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError)
- throw sessionError;
- if (!session)
- throw new errors_1.AuthSessionMissingError();
- const { error } = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/reauthenticate`, {
- headers: this.headers,
- jwt: session.access_token,
- });
- return this._returnResult({ data: { user: null, session: null }, error });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Resends an existing signup confirmation email, email change email, SMS OTP or phone change OTP.
- *
- * @category Auth
- *
- * @remarks
- * - Resends a signup confirmation, email change or phone change email to the user.
- * - Passwordless sign-ins can be resent by calling the `signInWithOtp()` method again.
- * - Password recovery emails can be resent by calling the `resetPasswordForEmail()` method again.
- * - This method will only resend an email or phone OTP to the user if there was an initial signup, email change or phone change request being made(note: For existing users signing in with OTP, you should use `signInWithOtp()` again to resend the OTP).
- * - You can specify a redirect url when you resend an email link using the `emailRedirectTo` option.
- *
- * @exampleDescription Resend an email signup confirmation
- * Resends the email signup confirmation to the user
- *
- * @example Resend an email signup confirmation
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'signup',
- * email: 'email@example.com',
- * options: {
- * emailRedirectTo: 'https://example.com/welcome'
- * }
- * })
- * ```
- *
- * @exampleDescription Resend a phone signup confirmation
- * Resends the phone signup confirmation email to the user
- *
- * @example Resend a phone signup confirmation
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'sms',
- * phone: '1234567890'
- * })
- * ```
- *
- * @exampleDescription Resend email change email
- * Resends the email change email to the user
- *
- * @example Resend email change email
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'email_change',
- * email: 'email@example.com'
- * })
- * ```
- *
- * @exampleDescription Resend phone change OTP
- * Resends the phone change OTP to the user
- *
- * @example Resend phone change OTP
- * ```js
- * const { error } = await supabase.auth.resend({
- * type: 'phone_change',
- * phone: '1234567890'
- * })
- * ```
- */
- async resend(credentials) {
- try {
- const endpoint = `${this.url}/resend`;
- if ('email' in credentials) {
- const { email, type, options } = credentials;
- const { error } = await (0, fetch_1._request)(this.fetch, 'POST', endpoint, {
- headers: this.headers,
- body: {
- email,
- type,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- redirectTo: options === null || options === void 0 ? void 0 : options.emailRedirectTo,
- });
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- else if ('phone' in credentials) {
- const { phone, type, options } = credentials;
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', endpoint, {
- headers: this.headers,
- body: {
- phone,
- type,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- });
- return this._returnResult({
- data: { user: null, session: null, messageId: data === null || data === void 0 ? void 0 : data.message_id },
- error,
- });
- }
- throw new errors_1.AuthInvalidCredentialsError('You must provide either an email or phone number and a type');
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Returns the session, refreshing it if necessary.
- *
- * The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out.
- *
- * **IMPORTANT:** This method loads values directly from the storage attached
- * to the client. If that storage is based on request cookies for example,
- * the values in it may not be authentic and therefore it's strongly advised
- * against using this method and its results in such circumstances. A warning
- * will be emitted if this is detected. Use {@link #getUser()} instead.
- *
- * @category Auth
- *
- * @remarks
- * - Since the introduction of [asymmetric JWT signing keys](/docs/guides/auth/signing-keys), this method is considered low-level and we encourage you to use `getClaims()` or `getUser()` instead.
- * - Retrieves the current [user session](/docs/guides/auth/sessions) from the storage medium (local storage, cookies).
- * - The session contains an access token (signed JWT), a refresh token and the user object.
- * - If the session's access token is expired or is about to expire, this method will use the refresh token to refresh the session.
- * - When using in a browser, or you've called `startAutoRefresh()` in your environment (React Native, etc.) this function always returns a valid access token without refreshing the session itself, as this is done in the background. This function returns very fast.
- * - **IMPORTANT SECURITY NOTICE:** If using an insecure storage medium, such as cookies or request headers, the user object returned by this function **must not be trusted**. Always verify the JWT using `getClaims()` or your own JWT verification library to securely establish the user's identity and access. You can also use `getUser()` to fetch the user object directly from the Auth server for this purpose.
- * - When using in a browser, this function is synchronized across all tabs using the [LockManager](https://developer.mozilla.org/en-US/docs/Web/API/LockManager) API. In other environments make sure you've defined a proper `lock` property, if necessary, to make sure there are no race conditions while the session is being refreshed.
- *
- * @example Get the session data
- * ```js
- * const { data, error } = await supabase.auth.getSession()
- * ```
- *
- * @exampleResponse Get the session data
- * ```json
- * {
- * "data": {
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- */
- async getSession() {
- await this.initializePromise;
- const result = await this._acquireLock(this.lockAcquireTimeout, async () => {
- return this._useSession(async (result) => {
- return result;
- });
- });
- return result;
- }
- /**
- * Acquires a global lock based on the storage key.
- */
- async _acquireLock(acquireTimeout, fn) {
- this._debug('#_acquireLock', 'begin', acquireTimeout);
- try {
- if (this.lockAcquired) {
- const last = this.pendingInLock.length
- ? this.pendingInLock[this.pendingInLock.length - 1]
- : Promise.resolve();
- const result = (async () => {
- await last;
- return await fn();
- })();
- this.pendingInLock.push((async () => {
- try {
- await result;
- }
- catch (_e) {
- // we just care if it finished
- }
- })());
- return result;
- }
- return await this.lock(`lock:${this.storageKey}`, acquireTimeout, async () => {
- this._debug('#_acquireLock', 'lock acquired for storage key', this.storageKey);
- try {
- this.lockAcquired = true;
- const result = fn();
- this.pendingInLock.push((async () => {
- try {
- await result;
- }
- catch (e) {
- // we just care if it finished
- }
- })());
- await result;
- // keep draining the queue until there's nothing to wait on
- while (this.pendingInLock.length) {
- const waitOn = [...this.pendingInLock];
- await Promise.all(waitOn);
- this.pendingInLock.splice(0, waitOn.length);
- }
- return await result;
- }
- finally {
- this._debug('#_acquireLock', 'lock released for storage key', this.storageKey);
- this.lockAcquired = false;
- }
- });
- }
- finally {
- this._debug('#_acquireLock', 'end');
- }
- }
- /**
- * Use instead of {@link #getSession} inside the library. It is
- * semantically usually what you want, as getting a session involves some
- * processing afterwards that requires only one client operating on the
- * session at once across multiple tabs or processes.
- */
- async _useSession(fn) {
- this._debug('#_useSession', 'begin');
- try {
- // the use of __loadSession here is the only correct use of the function!
- const result = await this.__loadSession();
- return await fn(result);
- }
- finally {
- this._debug('#_useSession', 'end');
- }
- }
- /**
- * NEVER USE DIRECTLY!
- *
- * Always use {@link #_useSession}.
- */
- async __loadSession() {
- this._debug('#__loadSession()', 'begin');
- if (!this.lockAcquired) {
- this._debug('#__loadSession()', 'used outside of an acquired lock!', new Error().stack);
- }
- try {
- let currentSession = null;
- const maybeSession = await (0, helpers_1.getItemAsync)(this.storage, this.storageKey);
- this._debug('#getSession()', 'session from storage', maybeSession);
- if (maybeSession !== null) {
- if (this._isValidSession(maybeSession)) {
- currentSession = maybeSession;
- }
- else {
- this._debug('#getSession()', 'session from storage is not valid');
- await this._removeSession();
- }
- }
- if (!currentSession) {
- return { data: { session: null }, error: null };
- }
- // A session is considered expired before the access token _actually_
- // expires. When the autoRefreshToken option is off (or when the tab is
- // in the background), very eager users of getSession() -- like
- // realtime-js -- might send a valid JWT which will expire by the time it
- // reaches the server.
- const hasExpired = currentSession.expires_at
- ? currentSession.expires_at * 1000 - Date.now() < constants_1.EXPIRY_MARGIN_MS
- : false;
- this._debug('#__loadSession()', `session has${hasExpired ? '' : ' not'} expired`, 'expires_at', currentSession.expires_at);
- if (!hasExpired) {
- if (this.userStorage) {
- const maybeUser = (await (0, helpers_1.getItemAsync)(this.userStorage, this.storageKey + '-user'));
- if (maybeUser === null || maybeUser === void 0 ? void 0 : maybeUser.user) {
- currentSession.user = maybeUser.user;
- }
- else {
- currentSession.user = (0, helpers_1.userNotAvailableProxy)();
- }
- }
- // Wrap the user object with a warning proxy on the server
- // This warns when properties of the user are accessed, not when session.user itself is accessed
- if (this.storage.isServer &&
- currentSession.user &&
- !currentSession.user.__isUserNotAvailableProxy) {
- const suppressWarningRef = { value: this.suppressGetSessionWarning };
- currentSession.user = (0, helpers_1.insecureUserWarningProxy)(currentSession.user, suppressWarningRef);
- // Update the client-level suppression flag when the proxy suppresses the warning
- if (suppressWarningRef.value) {
- this.suppressGetSessionWarning = true;
- }
- }
- return { data: { session: currentSession }, error: null };
- }
- const { data: session, error } = await this._callRefreshToken(currentSession.refresh_token);
- if (error) {
- return this._returnResult({ data: { session: null }, error });
- }
- return this._returnResult({ data: { session }, error: null });
- }
- finally {
- this._debug('#__loadSession()', 'end');
- }
- }
- /**
- * Gets the current user details if there is an existing session. This method
- * performs a network request to the Supabase Auth server, so the returned
- * value is authentic and can be used to base authorization rules on.
- *
- * @param jwt Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.
- *
- * @category Auth
- *
- * @remarks
- * - This method fetches the user object from the database instead of local session.
- * - This method is useful for checking if the user is authorized because it validates the user's access token JWT on the server.
- * - Should always be used when checking for user authorization on the server. On the client, you can instead use `getSession().session.user` for faster results. `getSession` is insecure on the server.
- *
- * @example Get the logged in user with the current existing session
- * ```js
- * const { data: { user } } = await supabase.auth.getUser()
- * ```
- *
- * @exampleResponse Get the logged in user with the current existing session
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Get the logged in user with a custom access token jwt
- * ```js
- * const { data: { user } } = await supabase.auth.getUser(jwt)
- * ```
- */
- async getUser(jwt) {
- if (jwt) {
- return await this._getUser(jwt);
- }
- await this.initializePromise;
- const result = await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._getUser();
- });
- if (result.data.user) {
- this.suppressGetSessionWarning = true;
- }
- return result;
- }
- async _getUser(jwt) {
- try {
- if (jwt) {
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/user`, {
- headers: this.headers,
- jwt: jwt,
- xform: fetch_1._userResponse,
- });
- }
- return await this._useSession(async (result) => {
- var _a, _b, _c;
- const { data, error } = result;
- if (error) {
- throw error;
- }
- // returns an error if there is no access_token or custom authorization header
- if (!((_a = data.session) === null || _a === void 0 ? void 0 : _a.access_token) && !this.hasCustomAuthorizationHeader) {
- return { data: { user: null }, error: new errors_1.AuthSessionMissingError() };
- }
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/user`, {
- headers: this.headers,
- jwt: (_c = (_b = data.session) === null || _b === void 0 ? void 0 : _b.access_token) !== null && _c !== void 0 ? _c : undefined,
- xform: fetch_1._userResponse,
- });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- if ((0, errors_1.isAuthSessionMissingError)(error)) {
- // JWT contains a `session_id` which does not correspond to an active
- // session in the database, indicating the user is signed out.
- await this._removeSession();
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- }
- return this._returnResult({ data: { user: null }, error });
- }
- throw error;
- }
- }
- /**
- * Updates user data for a logged in user.
- *
- * @category Auth
- *
- * @remarks
- * - In order to use the `updateUser()` method, the user needs to be signed in first.
- * - By default, email updates sends a confirmation link to both the user's current and new email.
- * To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](/dashboard/project/_/auth/providers).
- *
- * @exampleDescription Update the email for an authenticated user
- * Sends a "Confirm Email Change" email to the new address. If **Secure Email Change** is enabled (default), confirmation is also required from the **old email** before the change is applied. To skip dual confirmation and apply the change after only the new email is verified, disable **Secure Email Change** in the [Email Auth Provider settings](/dashboard/project/_/auth/providers?provider=Email).
- *
- * @example Update the email for an authenticated user
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * email: 'new@email.com'
- * })
- * ```
- *
- * @exampleResponse Update the email for an authenticated user
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "new_email": "new@email.com",
- * "email_change_sent_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @exampleDescription Update the phone number for an authenticated user
- * Sends a one-time password (OTP) to the new phone number.
- *
- * @example Update the phone number for an authenticated user
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * phone: '123456789'
- * })
- * ```
- *
- * @example Update the password for an authenticated user
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * password: 'new password'
- * })
- * ```
- *
- * @exampleDescription Update the user's metadata
- * Updates the user's custom metadata.
- *
- * **Note**: The `data` field maps to the `auth.users.raw_user_meta_data` column in your Supabase database. When calling `getUser()`, the data will be available as `user.user_metadata`.
- *
- * @example Update the user's metadata
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * data: { hello: 'world' }
- * })
- * ```
- *
- * @exampleDescription Update the user's password with a nonce
- * If **Secure password change** is enabled in your [project's email provider settings](/dashboard/project/_/auth/providers), updating the user's password would require a nonce if the user **hasn't recently signed in**. The nonce is sent to the user's email or phone number. A user is deemed recently signed in if the session was created in the last 24 hours.
- *
- * @example Update the user's password with a nonce
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * password: 'new password',
- * nonce: '123456'
- * })
- * ```
- */
- async updateUser(attributes, options = {}) {
- await this.initializePromise;
- return await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._updateUser(attributes, options);
- });
- }
- async _updateUser(attributes, options = {}) {
- try {
- return await this._useSession(async (result) => {
- const { data: sessionData, error: sessionError } = result;
- if (sessionError) {
- throw sessionError;
- }
- if (!sessionData.session) {
- throw new errors_1.AuthSessionMissingError();
- }
- const session = sessionData.session;
- let codeChallenge = null;
- let codeChallengeMethod = null;
- if (this.flowType === 'pkce' && attributes.email != null) {
- ;
- [codeChallenge, codeChallengeMethod] = await (0, helpers_1.getCodeChallengeAndMethod)(this.storage, this.storageKey);
- }
- const { data, error: userError } = await (0, fetch_1._request)(this.fetch, 'PUT', `${this.url}/user`, {
- headers: this.headers,
- redirectTo: options === null || options === void 0 ? void 0 : options.emailRedirectTo,
- body: Object.assign(Object.assign({}, attributes), { code_challenge: codeChallenge, code_challenge_method: codeChallengeMethod }),
- jwt: session.access_token,
- xform: fetch_1._userResponse,
- });
- if (userError) {
- throw userError;
- }
- session.user = data.user;
- await this._saveSession(session);
- await this._notifyAllSubscribers('USER_UPDATED', session);
- return this._returnResult({ data: { user: session.user }, error: null });
- });
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null }, error });
- }
- throw error;
- }
- }
- /**
- * Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session.
- * If the refresh token or access token in the current session is invalid, an error will be thrown.
- * @param currentSession The current session that minimally contains an access token and refresh token.
- *
- * @category Auth
- *
- * @remarks
- * - This method sets the session using an `access_token` and `refresh_token`.
- * - If successful, a `SIGNED_IN` event is emitted.
- *
- * @exampleDescription Set the session
- * Sets the session data from an access_token and refresh_token, then returns an auth response or error.
- *
- * @example Set the session
- * ```js
- * const { data, error } = await supabase.auth.setSession({
- * access_token,
- * refresh_token
- * })
- * ```
- *
- * @exampleResponse Set the session
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "session": {
- * "access_token": "",
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "11111111-1111-1111-1111-111111111111",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "2024-01-01T00:00:00Z",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "token_type": "bearer",
- * "expires_in": 3500,
- * "expires_at": 1700000000
- * }
- * },
- * "error": null
- * }
- * ```
- */
- async setSession(currentSession) {
- await this.initializePromise;
- return await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._setSession(currentSession);
- });
- }
- async _setSession(currentSession) {
- try {
- if (!currentSession.access_token || !currentSession.refresh_token) {
- throw new errors_1.AuthSessionMissingError();
- }
- const timeNow = Date.now() / 1000;
- let expiresAt = timeNow;
- let hasExpired = true;
- let session = null;
- const { payload } = (0, helpers_1.decodeJWT)(currentSession.access_token);
- if (payload.exp) {
- expiresAt = payload.exp;
- hasExpired = expiresAt <= timeNow;
- }
- if (hasExpired) {
- const { data: refreshedSession, error } = await this._callRefreshToken(currentSession.refresh_token);
- if (error) {
- return this._returnResult({ data: { user: null, session: null }, error: error });
- }
- if (!refreshedSession) {
- return { data: { user: null, session: null }, error: null };
- }
- session = refreshedSession;
- }
- else {
- const { data, error } = await this._getUser(currentSession.access_token);
- if (error) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- session = {
- access_token: currentSession.access_token,
- refresh_token: currentSession.refresh_token,
- user: data.user,
- token_type: 'bearer',
- expires_in: expiresAt - timeNow,
- expires_at: expiresAt,
- };
- await this._saveSession(session);
- await this._notifyAllSubscribers('SIGNED_IN', session);
- }
- return this._returnResult({ data: { user: session.user, session }, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { session: null, user: null }, error });
- }
- throw error;
- }
- }
- /**
- * Returns a new session, regardless of expiry status.
- * Takes in an optional current session. If not passed in, then refreshSession() will attempt to retrieve it from getSession().
- * If the current session's refresh token is invalid, an error will be thrown.
- * @param currentSession The current session. If passed in, it must contain a refresh token.
- *
- * @category Auth
- *
- * @remarks
- * - This method will refresh and return a new session whether the current one is expired or not.
- *
- * @example Refresh session using the current session
- * ```js
- * const { data, error } = await supabase.auth.refreshSession()
- * const { session, user } = data
- * ```
- *
- * @exampleResponse Refresh session using the current session
- * ```json
- * {
- * "data": {
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * },
- * "session": {
- * "access_token": "",
- * "token_type": "bearer",
- * "expires_in": 3600,
- * "expires_at": 1700000000,
- * "refresh_token": "",
- * "user": {
- * "id": "11111111-1111-1111-1111-111111111111",
- * "aud": "authenticated",
- * "role": "authenticated",
- * "email": "example@email.com",
- * "email_confirmed_at": "2024-01-01T00:00:00Z",
- * "phone": "",
- * "confirmed_at": "2024-01-01T00:00:00Z",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "app_metadata": {
- * "provider": "email",
- * "providers": [
- * "email"
- * ]
- * },
- * "user_metadata": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ],
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "is_anonymous": false
- * }
- * }
- * },
- * "error": null
- * }
- * ```
- *
- * @example Refresh session using a refresh token
- * ```js
- * const { data, error } = await supabase.auth.refreshSession({ refresh_token })
- * const { session, user } = data
- * ```
- */
- async refreshSession(currentSession) {
- await this.initializePromise;
- return await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._refreshSession(currentSession);
- });
- }
- async _refreshSession(currentSession) {
- try {
- return await this._useSession(async (result) => {
- var _a;
- if (!currentSession) {
- const { data, error } = result;
- if (error) {
- throw error;
- }
- currentSession = (_a = data.session) !== null && _a !== void 0 ? _a : undefined;
- }
- if (!(currentSession === null || currentSession === void 0 ? void 0 : currentSession.refresh_token)) {
- throw new errors_1.AuthSessionMissingError();
- }
- const { data: session, error } = await this._callRefreshToken(currentSession.refresh_token);
- if (error) {
- return this._returnResult({ data: { user: null, session: null }, error: error });
- }
- if (!session) {
- return this._returnResult({ data: { user: null, session: null }, error: null });
- }
- return this._returnResult({ data: { user: session.user, session }, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- }
- /**
- * Gets the session data from a URL string
- */
- async _getSessionFromURL(params, callbackUrlType) {
- var _a;
- try {
- if (!(0, helpers_1.isBrowser)())
- throw new errors_1.AuthImplicitGrantRedirectError('No browser detected.');
- // If there's an error in the URL, it doesn't matter what flow it is, we just return the error.
- if (params.error || params.error_description || params.error_code) {
- // The error class returned implies that the redirect is from an implicit grant flow
- // but it could also be from a redirect error from a PKCE flow.
- throw new errors_1.AuthImplicitGrantRedirectError(params.error_description || 'Error in URL with unspecified error_description', {
- error: params.error || 'unspecified_error',
- code: params.error_code || 'unspecified_code',
- });
- }
- // Checks for mismatches between the flowType initialised in the client and the URL parameters
- switch (callbackUrlType) {
- case 'implicit':
- if (this.flowType === 'pkce') {
- throw new errors_1.AuthPKCEGrantCodeExchangeError('Not a valid PKCE flow url.');
- }
- break;
- case 'pkce':
- if (this.flowType === 'implicit') {
- throw new errors_1.AuthImplicitGrantRedirectError('Not a valid implicit grant flow url.');
- }
- break;
- default:
- // there's no mismatch so we continue
- }
- // Since this is a redirect for PKCE, we attempt to retrieve the code from the URL for the code exchange
- if (callbackUrlType === 'pkce') {
- this._debug('#_initialize()', 'begin', 'is PKCE flow', true);
- if (!params.code)
- throw new errors_1.AuthPKCEGrantCodeExchangeError('No code detected.');
- const { data, error } = await this._exchangeCodeForSession(params.code);
- if (error)
- throw error;
- const url = new URL(window.location.href);
- url.searchParams.delete('code');
- window.history.replaceState(window.history.state, '', url.toString());
- return {
- data: { session: data.session, redirectType: (_a = data.redirectType) !== null && _a !== void 0 ? _a : null },
- error: null,
- };
- }
- const { provider_token, provider_refresh_token, access_token, refresh_token, expires_in, expires_at, token_type, } = params;
- if (!access_token || !expires_in || !refresh_token || !token_type) {
- throw new errors_1.AuthImplicitGrantRedirectError('No session defined in URL');
- }
- const timeNow = Math.round(Date.now() / 1000);
- const expiresIn = parseInt(expires_in);
- let expiresAt = timeNow + expiresIn;
- if (expires_at) {
- expiresAt = parseInt(expires_at);
- }
- const actuallyExpiresIn = expiresAt - timeNow;
- if (actuallyExpiresIn * 1000 <= constants_1.AUTO_REFRESH_TICK_DURATION_MS) {
- console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${actuallyExpiresIn}s, should have been closer to ${expiresIn}s`);
- }
- const issuedAt = expiresAt - expiresIn;
- if (timeNow - issuedAt >= 120) {
- console.warn('@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale', issuedAt, expiresAt, timeNow);
- }
- else if (timeNow - issuedAt < 0) {
- console.warn('@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew', issuedAt, expiresAt, timeNow);
- }
- const { data, error } = await this._getUser(access_token);
- if (error)
- throw error;
- const session = {
- provider_token,
- provider_refresh_token,
- access_token,
- expires_in: expiresIn,
- expires_at: expiresAt,
- refresh_token,
- token_type: token_type,
- user: data.user,
- };
- // Remove tokens from URL
- window.location.hash = '';
- this._debug('#_getSessionFromURL()', 'clearing window.location.hash');
- return this._returnResult({ data: { session, redirectType: params.type }, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { session: null, redirectType: null }, error });
- }
- throw error;
- }
- }
- /**
- * Checks if the current URL contains parameters given by an implicit oauth grant flow (https://www.rfc-editor.org/rfc/rfc6749.html#section-4.2)
- *
- * If `detectSessionInUrl` is a function, it will be called with the URL and params to determine
- * if the URL should be processed as a Supabase auth callback. This allows users to exclude
- * URLs from other OAuth providers (e.g., Facebook Login) that also return access_token in the fragment.
- */
- _isImplicitGrantCallback(params) {
- if (typeof this.detectSessionInUrl === 'function') {
- return this.detectSessionInUrl(new URL(window.location.href), params);
- }
- return Boolean(params.access_token || params.error_description);
- }
- /**
- * Checks if the current URL and backing storage contain parameters given by a PKCE flow
- */
- async _isPKCECallback(params) {
- const currentStorageContent = await (0, helpers_1.getItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- return !!(params.code && currentStorageContent);
- }
- /**
- * Inside a browser context, `signOut()` will remove the logged in user from the browser session and log them out - removing all items from localstorage and then trigger a `"SIGNED_OUT"` event.
- *
- * For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`.
- * There is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason.
- *
- * If using `others` scope, no `SIGNED_OUT` event is fired!
- *
- * **Warning:** the default `scope` is `'global'`. This signs the user out of
- * **every device they are currently signed in on**, not just the current
- * tab/session. If you only want to sign the user out of the current session
- * (the behavior most other auth libraries default to), pass
- * `{ scope: 'local' }` explicitly.
- *
- * @category Auth
- *
- * @remarks
- * - In order to use the `signOut()` method, the user needs to be signed in first.
- * - By default, `signOut()` uses the **global** scope, which signs out the user
- * on every device they are signed in on (not just the current one). Pass
- * `{ scope: 'local' }` to only sign out the current session. This is
- * usually what apps want on a "Sign out" button, especially when users
- * sign in from multiple devices and do not expect signing out of one to
- * terminate the others.
- * - Since Supabase Auth uses JWTs for authentication, the access token JWT will be valid until it's expired. When the user signs out, Supabase revokes the refresh token and deletes the JWT from the client-side. This does not revoke the JWT and it will still be valid until it expires.
- *
- * @example Sign out of every device (global – default)
- * ```js
- * const { error } = await supabase.auth.signOut()
- * ```
- *
- * @example Sign out only the current session (recommended for most apps)
- * ```js
- * const { error } = await supabase.auth.signOut({ scope: 'local' })
- * ```
- *
- * @example Sign out of all other sessions, keep the current one
- * ```js
- * const { error } = await supabase.auth.signOut({ scope: 'others' })
- * ```
- */
- async signOut(options = { scope: 'global' }) {
- await this.initializePromise;
- return await this._acquireLock(this.lockAcquireTimeout, async () => {
- return await this._signOut(options);
- });
- }
- async _signOut({ scope } = { scope: 'global' }) {
- return await this._useSession(async (result) => {
- var _a;
- const { data, error: sessionError } = result;
- if (sessionError && !(0, errors_1.isAuthSessionMissingError)(sessionError)) {
- return this._returnResult({ error: sessionError });
- }
- const accessToken = (_a = data.session) === null || _a === void 0 ? void 0 : _a.access_token;
- if (accessToken) {
- const { error } = await this.admin.signOut(accessToken, scope);
- if (error) {
- // ignore 404s since user might not exist anymore
- // ignore 401s since an invalid or expired JWT should sign out the current session
- if (!(((0, errors_1.isAuthApiError)(error) &&
- (error.status === 404 || error.status === 401 || error.status === 403)) ||
- (0, errors_1.isAuthSessionMissingError)(error))) {
- return this._returnResult({ error });
- }
- }
- }
- if (scope !== 'others') {
- await this._removeSession();
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- }
- return this._returnResult({ error: null });
- });
- }
- /** *
- * @category Auth
- *
- * @remarks
- * - Subscribes to important events occurring on the user's session.
- * - Use on the frontend/client. It is less useful on the server.
- * - Events are emitted across tabs to keep your application's UI up-to-date. Some events can fire very frequently, based on the number of tabs open. Use a quick and efficient callback function, and defer or debounce as many operations as you can to be performed outside of the callback.
- * - **Important:** A callback can be an `async` function and it runs synchronously during the processing of the changes causing the event. You can easily create a dead-lock by using `await` on a call to another method of the Supabase library.
- * - Avoid using `async` functions as callbacks.
- * - Limit the number of `await` calls in `async` callbacks.
- * - Do not use other Supabase functions in the callback function. If you must, dispatch the functions once the callback has finished executing. Use this as a quick way to achieve this:
- * ```js
- * supabase.auth.onAuthStateChange((event, session) => {
- * setTimeout(async () => {
- * // await on other Supabase function here
- * // this runs right after the callback has finished
- * }, 0)
- * })
- * ```
- * - Emitted events:
- * - `INITIAL_SESSION`
- * - Emitted right after the Supabase client is constructed and the initial session from storage is loaded.
- * - `SIGNED_IN`
- * - Emitted each time a user session is confirmed or re-established, including on user sign in and when refocusing a tab.
- * - Avoid making assumptions as to when this event is fired, this may occur even when the user is already signed in. Instead, check the user object attached to the event to see if a new user has signed in and update your application's UI.
- * - This event can fire very frequently depending on the number of tabs open in your application.
- * - `SIGNED_OUT`
- * - Emitted when the user signs out. This can be after:
- * - A call to `supabase.auth.signOut()`.
- * - After the user's session has expired for any reason:
- * - User has signed out on another device.
- * - The session has reached its timebox limit or inactivity timeout.
- * - User has signed in on another device with single session per user enabled.
- * - Check the [User Sessions](/docs/guides/auth/sessions) docs for more information.
- * - Use this to clean up any local storage your application has associated with the user.
- * - `TOKEN_REFRESHED`
- * - Emitted each time a new access and refresh token are fetched for the signed in user.
- * - It's best practice and highly recommended to extract the access token (JWT) and store it in memory for further use in your application.
- * - Avoid frequent calls to `supabase.auth.getSession()` for the same purpose.
- * - There is a background process that keeps track of when the session should be refreshed so you will always receive valid tokens by listening to this event.
- * - The frequency of this event is related to the JWT expiry limit configured on your project.
- * - `USER_UPDATED`
- * - Emitted each time the `supabase.auth.updateUser()` method finishes successfully. Listen to it to update your application's UI based on new profile information.
- * - `PASSWORD_RECOVERY`
- * - Emitted instead of the `SIGNED_IN` event when the user lands on a page that includes a password recovery link in the URL.
- * - Use it to show a UI to the user where they can [reset their password](/docs/guides/auth/passwords#resetting-a-users-password-forgot-password).
- *
- * @example Listen to auth changes
- * ```js
- * const { data } = supabase.auth.onAuthStateChange((event, session) => {
- * console.log(event, session)
- *
- * if (event === 'INITIAL_SESSION') {
- * // handle initial session
- * } else if (event === 'SIGNED_IN') {
- * // handle sign in event
- * } else if (event === 'SIGNED_OUT') {
- * // handle sign out event
- * } else if (event === 'PASSWORD_RECOVERY') {
- * // handle password recovery event
- * } else if (event === 'TOKEN_REFRESHED') {
- * // handle token refreshed event
- * } else if (event === 'USER_UPDATED') {
- * // handle user updated event
- * }
- * })
- *
- * // call unsubscribe to remove the callback
- * data.subscription.unsubscribe()
- * ```
- *
- * @exampleDescription Listen to sign out
- * Make sure you clear out any local data, such as local and session storage, after the client library has detected the user's sign out.
- *
- * @example Listen to sign out
- * ```js
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (event === 'SIGNED_OUT') {
- * console.log('SIGNED_OUT', session)
- *
- * // clear local and session storage
- * [
- * window.localStorage,
- * window.sessionStorage,
- * ].forEach((storage) => {
- * Object.entries(storage)
- * .forEach(([key]) => {
- * storage.removeItem(key)
- * })
- * })
- * }
- * })
- * ```
- *
- * @exampleDescription Store OAuth provider tokens on sign in
- * When using [OAuth (Social Login)](/docs/guides/auth/social-login) you sometimes wish to get access to the provider's access token and refresh token, in order to call provider APIs in the name of the user.
- *
- * For example, if you are using [Sign in with Google](/docs/guides/auth/social-login/auth-google) you may want to use the provider token to call Google APIs on behalf of the user. Supabase Auth does not keep track of the provider access and refresh token, but does return them for you once, immediately after sign in. You can use the `onAuthStateChange` method to listen for the presence of the provider tokens and store them in local storage. You can further send them to your server's APIs for use on the backend.
- *
- * Finally, make sure you remove them from local storage on the `SIGNED_OUT` event. If the OAuth provider supports token revocation, make sure you call those APIs either from the frontend or schedule them to be called on the backend.
- *
- * @example Store OAuth provider tokens on sign in
- * ```js
- * // Register this immediately after calling createClient!
- * // Because signInWithOAuth causes a redirect, you need to fetch the
- * // provider tokens from the callback.
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (session && session.provider_token) {
- * window.localStorage.setItem('oauth_provider_token', session.provider_token)
- * }
- *
- * if (session && session.provider_refresh_token) {
- * window.localStorage.setItem('oauth_provider_refresh_token', session.provider_refresh_token)
- * }
- *
- * if (event === 'SIGNED_OUT') {
- * window.localStorage.removeItem('oauth_provider_token')
- * window.localStorage.removeItem('oauth_provider_refresh_token')
- * }
- * })
- * ```
- *
- * @exampleDescription Use React Context for the User's session
- * Instead of relying on `supabase.auth.getSession()` within your React components, you can use a [React Context](https://react.dev/reference/react/createContext) to store the latest session information from the `onAuthStateChange` callback and access it that way.
- *
- * @example Use React Context for the User's session
- * ```js
- * const SessionContext = React.createContext(null)
- *
- * function main() {
- * const [session, setSession] = React.useState(null)
- *
- * React.useEffect(() => {
- * const {data: { subscription }} = supabase.auth.onAuthStateChange(
- * (event, session) => {
- * if (event === 'SIGNED_OUT') {
- * setSession(null)
- * } else if (session) {
- * setSession(session)
- * }
- * })
- *
- * return () => {
- * subscription.unsubscribe()
- * }
- * }, [])
- *
- * return (
- *
- *
- *
- * )
- * }
- * ```
- *
- * @example Listen to password recovery events
- * ```js
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (event === 'PASSWORD_RECOVERY') {
- * console.log('PASSWORD_RECOVERY', session)
- * // show screen to update user's password
- * showPasswordResetScreen(true)
- * }
- * })
- * ```
- *
- * @example Listen to sign in
- * ```js
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (event === 'SIGNED_IN') console.log('SIGNED_IN', session)
- * })
- * ```
- *
- * @example Listen to token refresh
- * ```js
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (event === 'TOKEN_REFRESHED') console.log('TOKEN_REFRESHED', session)
- * })
- * ```
- *
- * @example Listen to user updates
- * ```js
- * supabase.auth.onAuthStateChange((event, session) => {
- * if (event === 'USER_UPDATED') console.log('USER_UPDATED', session)
- * })
- * ```
- */
- onAuthStateChange(callback) {
- const id = (0, helpers_1.generateCallbackId)();
- const subscription = {
- id,
- callback,
- unsubscribe: () => {
- this._debug('#unsubscribe()', 'state change callback with id removed', id);
- this.stateChangeEmitters.delete(id);
- },
- };
- this._debug('#onAuthStateChange()', 'registered callback with id', id);
- this.stateChangeEmitters.set(id, subscription);
- (async () => {
- await this.initializePromise;
- await this._acquireLock(this.lockAcquireTimeout, async () => {
- this._emitInitialSession(id);
- });
- })();
- return { data: { subscription } };
- }
- async _emitInitialSession(id) {
- return await this._useSession(async (result) => {
- var _a, _b;
- try {
- const { data: { session }, error, } = result;
- if (error)
- throw error;
- await ((_a = this.stateChangeEmitters.get(id)) === null || _a === void 0 ? void 0 : _a.callback('INITIAL_SESSION', session));
- this._debug('INITIAL_SESSION', 'callback id', id, 'session', session);
- }
- catch (err) {
- await ((_b = this.stateChangeEmitters.get(id)) === null || _b === void 0 ? void 0 : _b.callback('INITIAL_SESSION', null));
- this._debug('INITIAL_SESSION', 'callback id', id, 'error', err);
- if ((0, errors_1.isAuthSessionMissingError)(err)) {
- console.warn(err);
- }
- else {
- console.error(err);
- }
- }
- });
- }
- /**
- * Sends a password reset request to an email address. This method supports the PKCE flow.
- *
- * @param email The email address of the user.
- * @param options.redirectTo The URL to send the user to after they click the password reset link.
- * @param options.captchaToken Verification token received when the user completes the captcha on the site.
- *
- * @category Auth
- *
- * @remarks
- * - The password reset flow consist of 2 broad steps: (i) Allow the user to login via the password reset link; (ii) Update the user's password.
- * - The `resetPasswordForEmail()` only sends a password reset link to the user's email.
- * To update the user's password, see [`updateUser()`](/docs/reference/javascript/auth-updateuser).
- * - A `PASSWORD_RECOVERY` event will be emitted when the password recovery link is clicked.
- * You can use [`onAuthStateChange()`](/docs/reference/javascript/auth-onauthstatechange) to listen and invoke a callback function on these events.
- * - When the user clicks the reset link in the email they are redirected back to your application.
- * You can configure the URL that the user is redirected to with the `redirectTo` parameter.
- * See [redirect URLs and wildcards](/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls) to add additional redirect URLs to your project.
- * - After the user has been redirected successfully, prompt them for a new password and call `updateUser()`:
- * ```js
- * const { data, error } = await supabase.auth.updateUser({
- * password: new_password
- * })
- * ```
- *
- * @example Reset password
- * ```js
- * const { data, error } = await supabase.auth.resetPasswordForEmail(email, {
- * redirectTo: 'https://example.com/update-password',
- * })
- * ```
- *
- * @exampleResponse Reset password
- * ```json
- * {
- * data: {}
- * error: null
- * }
- * ```
- *
- * @example Reset password (React)
- * ```js
- * /**
- * * Step 1: Send the user an email to get a password reset token.
- * * This email contains a link which sends the user back to your application.
- * *\/
- * const { data, error } = await supabase.auth
- * .resetPasswordForEmail('user@email.com')
- *
- * /**
- * * Step 2: Once the user is redirected back to your application,
- * * ask the user to reset their password.
- * *\/
- * useEffect(() => {
- * supabase.auth.onAuthStateChange(async (event, session) => {
- * if (event == "PASSWORD_RECOVERY") {
- * const newPassword = prompt("What would you like your new password to be?");
- * const { data, error } = await supabase.auth
- * .updateUser({ password: newPassword })
- *
- * if (data) alert("Password updated successfully!")
- * if (error) alert("There was an error updating your password.")
- * }
- * })
- * }, [])
- * ```
- */
- async resetPasswordForEmail(email, options = {}) {
- let codeChallenge = null;
- let codeChallengeMethod = null;
- if (this.flowType === 'pkce') {
- ;
- [codeChallenge, codeChallengeMethod] = await (0, helpers_1.getCodeChallengeAndMethod)(this.storage, this.storageKey, true // isPasswordRecovery
- );
- }
- try {
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/recover`, {
- body: {
- email,
- code_challenge: codeChallenge,
- code_challenge_method: codeChallengeMethod,
- gotrue_meta_security: { captcha_token: options.captchaToken },
- },
- headers: this.headers,
- redirectTo: options.redirectTo,
- });
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Gets all the identities linked to a user.
- *
- * @category Auth
- *
- * @remarks
- * - The user needs to be signed in to call `getUserIdentities()`.
- *
- * @example Returns a list of identities linked to the user
- * ```js
- * const { data, error } = await supabase.auth.getUserIdentities()
- * ```
- *
- * @exampleResponse Returns a list of identities linked to the user
- * ```json
- * {
- * "data": {
- * "identities": [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "2024-01-01T00:00:00Z",
- * "user_id": "2024-01-01T00:00:00Z",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": false,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "example@email.com"
- * }
- * ]
- * },
- * "error": null
- * }
- * ```
- */
- async getUserIdentities() {
- var _a;
- try {
- const { data, error } = await this.getUser();
- if (error)
- throw error;
- return this._returnResult({ data: { identities: (_a = data.user.identities) !== null && _a !== void 0 ? _a : [] }, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /** *
- * @category Auth
- *
- * @remarks
- * - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/auth/providers).
- * - The user needs to be signed in to call `linkIdentity()`.
- * - If the candidate identity is already linked to the existing user or another user, `linkIdentity()` will fail.
- * - If `linkIdentity` is run in the browser, the user is automatically redirected to the returned URL. On the server, you should handle the redirect.
- *
- * @example Link an identity to a user
- * ```js
- * const { data, error } = await supabase.auth.linkIdentity({
- * provider: 'github'
- * })
- * ```
- *
- * @exampleResponse Link an identity to a user
- * ```json
- * {
- * data: {
- * provider: 'github',
- * url:
- * },
- * error: null
- * }
- * ```
- */
- async linkIdentity(credentials) {
- if ('token' in credentials) {
- return this.linkIdentityIdToken(credentials);
- }
- return this.linkIdentityOAuth(credentials);
- }
- async linkIdentityOAuth(credentials) {
- var _a;
- try {
- const { data, error } = await this._useSession(async (result) => {
- var _a, _b, _c, _d, _f;
- const { data, error } = result;
- if (error)
- throw error;
- const url = await this._getUrlForProvider(`${this.url}/user/identities/authorize`, credentials.provider, {
- redirectTo: (_a = credentials.options) === null || _a === void 0 ? void 0 : _a.redirectTo,
- scopes: (_b = credentials.options) === null || _b === void 0 ? void 0 : _b.scopes,
- queryParams: (_c = credentials.options) === null || _c === void 0 ? void 0 : _c.queryParams,
- skipBrowserRedirect: true,
- });
- return await (0, fetch_1._request)(this.fetch, 'GET', url, {
- headers: this.headers,
- jwt: (_f = (_d = data.session) === null || _d === void 0 ? void 0 : _d.access_token) !== null && _f !== void 0 ? _f : undefined,
- });
- });
- if (error)
- throw error;
- if ((0, helpers_1.isBrowser)() && !((_a = credentials.options) === null || _a === void 0 ? void 0 : _a.skipBrowserRedirect)) {
- window.location.assign(data === null || data === void 0 ? void 0 : data.url);
- }
- return this._returnResult({
- data: { provider: credentials.provider, url: data === null || data === void 0 ? void 0 : data.url },
- error: null,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { provider: credentials.provider, url: null }, error });
- }
- throw error;
- }
- }
- async linkIdentityIdToken(credentials) {
- return await this._useSession(async (result) => {
- var _a;
- try {
- const { error: sessionError, data: { session }, } = result;
- if (sessionError)
- throw sessionError;
- const { options, provider, token, access_token, nonce } = credentials;
- const res = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=id_token`, {
- headers: this.headers,
- jwt: (_a = session === null || session === void 0 ? void 0 : session.access_token) !== null && _a !== void 0 ? _a : undefined,
- body: {
- provider,
- id_token: token,
- access_token,
- nonce,
- link_identity: true,
- gotrue_meta_security: { captcha_token: options === null || options === void 0 ? void 0 : options.captchaToken },
- },
- xform: fetch_1._sessionResponse,
- });
- const { data, error } = res;
- if (error) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- else if (!data || !data.session || !data.user) {
- return this._returnResult({
- data: { user: null, session: null },
- error: new errors_1.AuthInvalidTokenResponseError(),
- });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('USER_UPDATED', data.session);
- }
- return this._returnResult({ data, error });
- }
- catch (error) {
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { user: null, session: null }, error });
- }
- throw error;
- }
- });
- }
- /**
- * Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked.
- *
- * @category Auth
- *
- * @remarks
- * - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/auth/providers).
- * - The user needs to be signed in to call `unlinkIdentity()`.
- * - The user must have at least 2 identities in order to unlink an identity.
- * - The identity to be unlinked must belong to the user.
- *
- * @example Unlink an identity
- * ```js
- * // retrieve all identities linked to a user
- * const identities = await supabase.auth.getUserIdentities()
- *
- * // find the google identity
- * const googleIdentity = identities.find(
- * identity => identity.provider === 'google'
- * )
- *
- * // unlink the google identity
- * const { error } = await supabase.auth.unlinkIdentity(googleIdentity)
- * ```
- */
- async unlinkIdentity(identity) {
- try {
- return await this._useSession(async (result) => {
- var _a, _b;
- const { data, error } = result;
- if (error) {
- throw error;
- }
- return await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/user/identities/${identity.identity_id}`, {
- headers: this.headers,
- jwt: (_b = (_a = data.session) === null || _a === void 0 ? void 0 : _a.access_token) !== null && _b !== void 0 ? _b : undefined,
- });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Generates a new JWT.
- * @param refreshToken A valid refresh token that was returned on login.
- */
- async _refreshAccessToken(refreshToken) {
- const debugName = `#_refreshAccessToken(${refreshToken.substring(0, 5)}...)`;
- this._debug(debugName, 'begin');
- try {
- const startedAt = Date.now();
- // will attempt to refresh the token with exponential backoff
- return await (0, helpers_1.retryable)(async (attempt) => {
- if (attempt > 0) {
- await (0, helpers_1.sleep)(200 * Math.pow(2, attempt - 1)); // 200, 400, 800, ...
- }
- this._debug(debugName, 'refreshing attempt', attempt);
- return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/token?grant_type=refresh_token`, {
- body: { refresh_token: refreshToken },
- headers: this.headers,
- xform: fetch_1._sessionResponse,
- });
- }, (attempt, error) => {
- const nextBackOffInterval = 200 * Math.pow(2, attempt);
- return (error &&
- (0, errors_1.isAuthRetryableFetchError)(error) &&
- // retryable only if the request can be sent before the backoff overflows the tick duration
- Date.now() + nextBackOffInterval - startedAt < constants_1.AUTO_REFRESH_TICK_DURATION_MS);
- });
- }
- catch (error) {
- this._debug(debugName, 'error', error);
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: { session: null, user: null }, error });
- }
- throw error;
- }
- finally {
- this._debug(debugName, 'end');
- }
- }
- _isValidSession(maybeSession) {
- const isValidSession = typeof maybeSession === 'object' &&
- maybeSession !== null &&
- 'access_token' in maybeSession &&
- 'refresh_token' in maybeSession &&
- 'expires_at' in maybeSession;
- return isValidSession;
- }
- async _handleProviderSignIn(provider, options) {
- const url = await this._getUrlForProvider(`${this.url}/authorize`, provider, {
- redirectTo: options.redirectTo,
- scopes: options.scopes,
- queryParams: options.queryParams,
- });
- this._debug('#_handleProviderSignIn()', 'provider', provider, 'options', options, 'url', url);
- // try to open on the browser
- if ((0, helpers_1.isBrowser)() && !options.skipBrowserRedirect) {
- window.location.assign(url);
- }
- return { data: { provider, url }, error: null };
- }
- /**
- * Recovers the session from LocalStorage and refreshes the token
- * Note: this method is async to accommodate for AsyncStorage e.g. in React native.
- */
- async _recoverAndRefresh() {
- var _a, _b;
- const debugName = '#_recoverAndRefresh()';
- this._debug(debugName, 'begin');
- try {
- const currentSession = (await (0, helpers_1.getItemAsync)(this.storage, this.storageKey));
- if (currentSession && this.userStorage) {
- let maybeUser = (await (0, helpers_1.getItemAsync)(this.userStorage, this.storageKey + '-user'));
- if (!this.storage.isServer && Object.is(this.storage, this.userStorage) && !maybeUser) {
- // storage and userStorage are the same storage medium, for example
- // window.localStorage if userStorage does not have the user from
- // storage stored, store it first thereby migrating the user object
- // from storage -> userStorage
- maybeUser = { user: currentSession.user };
- await (0, helpers_1.setItemAsync)(this.userStorage, this.storageKey + '-user', maybeUser);
- }
- currentSession.user = (_a = maybeUser === null || maybeUser === void 0 ? void 0 : maybeUser.user) !== null && _a !== void 0 ? _a : (0, helpers_1.userNotAvailableProxy)();
- }
- else if (currentSession && !currentSession.user) {
- // user storage is not set, let's check if it was previously enabled so
- // we bring back the storage as it should be
- if (!currentSession.user) {
- // test if userStorage was previously enabled and the storage medium was the same, to move the user back under the same key
- const separateUser = (await (0, helpers_1.getItemAsync)(this.storage, this.storageKey + '-user'));
- if (separateUser && (separateUser === null || separateUser === void 0 ? void 0 : separateUser.user)) {
- currentSession.user = separateUser.user;
- await (0, helpers_1.removeItemAsync)(this.storage, this.storageKey + '-user');
- await (0, helpers_1.setItemAsync)(this.storage, this.storageKey, currentSession);
- }
- else {
- currentSession.user = (0, helpers_1.userNotAvailableProxy)();
- }
- }
- }
- this._debug(debugName, 'session from storage', currentSession);
- if (!this._isValidSession(currentSession)) {
- this._debug(debugName, 'session is not valid');
- if (currentSession !== null) {
- await this._removeSession();
- }
- return;
- }
- const expiresWithMargin = ((_b = currentSession.expires_at) !== null && _b !== void 0 ? _b : Infinity) * 1000 - Date.now() < constants_1.EXPIRY_MARGIN_MS;
- this._debug(debugName, `session has${expiresWithMargin ? '' : ' not'} expired with margin of ${constants_1.EXPIRY_MARGIN_MS}s`);
- if (expiresWithMargin) {
- if (this.autoRefreshToken && currentSession.refresh_token) {
- const { error } = await this._callRefreshToken(currentSession.refresh_token);
- if (error) {
- console.error(error);
- if (!(0, errors_1.isAuthRetryableFetchError)(error)) {
- this._debug(debugName, 'refresh failed with a non-retryable error, removing the session', error);
- await this._removeSession();
- }
- }
- }
- }
- else if (currentSession.user &&
- currentSession.user.__isUserNotAvailableProxy === true) {
- // If we have a proxy user, try to get the real user data
- try {
- const { data, error: userError } = await this._getUser(currentSession.access_token);
- if (!userError && (data === null || data === void 0 ? void 0 : data.user)) {
- currentSession.user = data.user;
- await this._saveSession(currentSession);
- await this._notifyAllSubscribers('SIGNED_IN', currentSession);
- }
- else {
- this._debug(debugName, 'could not get user data, skipping SIGNED_IN notification');
- }
- }
- catch (getUserError) {
- console.error('Error getting user data:', getUserError);
- this._debug(debugName, 'error getting user data, skipping SIGNED_IN notification', getUserError);
- }
- }
- else {
- // no need to persist currentSession again, as we just loaded it from
- // local storage; persisting it again may overwrite a value saved by
- // another client with access to the same local storage
- await this._notifyAllSubscribers('SIGNED_IN', currentSession);
- }
- }
- catch (err) {
- this._debug(debugName, 'error', err);
- console.error(err);
- return;
- }
- finally {
- this._debug(debugName, 'end');
- }
- }
- async _callRefreshToken(refreshToken) {
- var _a, _b;
- if (!refreshToken) {
- throw new errors_1.AuthSessionMissingError();
- }
- // refreshing is already in progress
- if (this.refreshingDeferred) {
- return this.refreshingDeferred.promise;
- }
- const debugName = `#_callRefreshToken(${refreshToken.substring(0, 5)}...)`;
- this._debug(debugName, 'begin');
- try {
- this.refreshingDeferred = new helpers_1.Deferred();
- const { data, error } = await this._refreshAccessToken(refreshToken);
- if (error)
- throw error;
- if (!data.session)
- throw new errors_1.AuthSessionMissingError();
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('TOKEN_REFRESHED', data.session);
- const result = { data: data.session, error: null };
- this.refreshingDeferred.resolve(result);
- return result;
- }
- catch (error) {
- this._debug(debugName, 'error', error);
- if ((0, errors_1.isAuthError)(error)) {
- const result = { data: null, error };
- if (!(0, errors_1.isAuthRetryableFetchError)(error)) {
- await this._removeSession();
- }
- (_a = this.refreshingDeferred) === null || _a === void 0 ? void 0 : _a.resolve(result);
- return result;
- }
- (_b = this.refreshingDeferred) === null || _b === void 0 ? void 0 : _b.reject(error);
- throw error;
- }
- finally {
- this.refreshingDeferred = null;
- this._debug(debugName, 'end');
- }
- }
- async _notifyAllSubscribers(event, session, broadcast = true) {
- const debugName = `#_notifyAllSubscribers(${event})`;
- this._debug(debugName, 'begin', session, `broadcast = ${broadcast}`);
- try {
- if (this.broadcastChannel && broadcast) {
- this.broadcastChannel.postMessage({ event, session });
- }
- const errors = [];
- const promises = Array.from(this.stateChangeEmitters.values()).map(async (x) => {
- try {
- await x.callback(event, session);
- }
- catch (e) {
- errors.push(e);
- }
- });
- await Promise.all(promises);
- if (errors.length > 0) {
- for (let i = 0; i < errors.length; i += 1) {
- console.error(errors[i]);
- }
- throw errors[0];
- }
- }
- finally {
- this._debug(debugName, 'end');
- }
- }
- /**
- * set currentSession and currentUser
- * process to _startAutoRefreshToken if possible
- */
- async _saveSession(session) {
- this._debug('#_saveSession()', session);
- // _saveSession is always called whenever a new session has been acquired
- // so we can safely suppress the warning returned by future getSession calls
- this.suppressGetSessionWarning = true;
- await (0, helpers_1.removeItemAsync)(this.storage, `${this.storageKey}-code-verifier`);
- // Create a shallow copy to work with, to avoid mutating the original session object if it's used elsewhere
- const sessionToProcess = Object.assign({}, session);
- const userIsProxy = sessionToProcess.user && sessionToProcess.user.__isUserNotAvailableProxy === true;
- if (this.userStorage) {
- if (!userIsProxy && sessionToProcess.user) {
- // If it's a real user object, save it to userStorage.
- await (0, helpers_1.setItemAsync)(this.userStorage, this.storageKey + '-user', {
- user: sessionToProcess.user,
- });
- }
- else if (userIsProxy) {
- // If it's the proxy, it means user was not found in userStorage.
- // We should ensure no stale user data for this key exists in userStorage if we were to save null,
- // or simply not save the proxy. For now, we don't save the proxy here.
- // If there's a need to clear userStorage if user becomes proxy, that logic would go here.
- }
- // Prepare the main session data for primary storage: remove the user property before cloning
- // This is important because the original session.user might be the proxy
- const mainSessionData = Object.assign({}, sessionToProcess);
- delete mainSessionData.user; // Remove user (real or proxy) before cloning for main storage
- const clonedMainSessionData = (0, helpers_1.deepClone)(mainSessionData);
- await (0, helpers_1.setItemAsync)(this.storage, this.storageKey, clonedMainSessionData);
- }
- else {
- // No userStorage is configured.
- // In this case, session.user should ideally not be a proxy.
- // If it were, structuredClone would fail. This implies an issue elsewhere if user is a proxy here
- const clonedSession = (0, helpers_1.deepClone)(sessionToProcess); // sessionToProcess still has its original user property
- await (0, helpers_1.setItemAsync)(this.storage, this.storageKey, clonedSession);
- }
- }
- async _removeSession() {
- this._debug('#_removeSession()');
- this.suppressGetSessionWarning = false;
- await (0, helpers_1.removeItemAsync)(this.storage, this.storageKey);
- await (0, helpers_1.removeItemAsync)(this.storage, this.storageKey + '-code-verifier');
- await (0, helpers_1.removeItemAsync)(this.storage, this.storageKey + '-user');
- if (this.userStorage) {
- await (0, helpers_1.removeItemAsync)(this.userStorage, this.storageKey + '-user');
- }
- await this._notifyAllSubscribers('SIGNED_OUT', null);
- }
- /**
- * Removes any registered visibilitychange callback.
- *
- * {@see #startAutoRefresh}
- * {@see #stopAutoRefresh}
- */
- _removeVisibilityChangedCallback() {
- this._debug('#_removeVisibilityChangedCallback()');
- const callback = this.visibilityChangedCallback;
- this.visibilityChangedCallback = null;
- try {
- if (callback && (0, helpers_1.isBrowser)() && (window === null || window === void 0 ? void 0 : window.removeEventListener)) {
- window.removeEventListener('visibilitychange', callback);
- }
- }
- catch (e) {
- console.error('removing visibilitychange callback failed', e);
- }
- }
- /**
- * This is the private implementation of {@link #startAutoRefresh}. Use this
- * within the library.
- */
- async _startAutoRefresh() {
- await this._stopAutoRefresh();
- this._debug('#_startAutoRefresh()');
- const ticker = setInterval(() => this._autoRefreshTokenTick(), constants_1.AUTO_REFRESH_TICK_DURATION_MS);
- this.autoRefreshTicker = ticker;
- if (ticker && typeof ticker === 'object' && typeof ticker.unref === 'function') {
- // ticker is a NodeJS Timeout object that has an `unref` method
- // https://nodejs.org/api/timers.html#timeoutunref
- // When auto refresh is used in NodeJS (like for testing) the
- // `setInterval` is preventing the process from being marked as
- // finished and tests run endlessly. This can be prevented by calling
- // `unref()` on the returned object.
- ticker.unref();
- // @ts-expect-error TS has no context of Deno
- }
- else if (typeof Deno !== 'undefined' && typeof Deno.unrefTimer === 'function') {
- // similar like for NodeJS, but with the Deno API
- // https://deno.land/api@latest?unstable&s=Deno.unrefTimer
- // @ts-expect-error TS has no context of Deno
- Deno.unrefTimer(ticker);
- }
- // run the tick immediately, but in the next pass of the event loop so that
- // #_initialize can be allowed to complete without recursively waiting on
- // itself
- const timeout = setTimeout(async () => {
- await this.initializePromise;
- await this._autoRefreshTokenTick();
- }, 0);
- this.autoRefreshTickTimeout = timeout;
- if (timeout && typeof timeout === 'object' && typeof timeout.unref === 'function') {
- timeout.unref();
- // @ts-expect-error TS has no context of Deno
- }
- else if (typeof Deno !== 'undefined' && typeof Deno.unrefTimer === 'function') {
- // @ts-expect-error TS has no context of Deno
- Deno.unrefTimer(timeout);
- }
- }
- /**
- * This is the private implementation of {@link #stopAutoRefresh}. Use this
- * within the library.
- */
- async _stopAutoRefresh() {
- this._debug('#_stopAutoRefresh()');
- const ticker = this.autoRefreshTicker;
- this.autoRefreshTicker = null;
- if (ticker) {
- clearInterval(ticker);
- }
- const timeout = this.autoRefreshTickTimeout;
- this.autoRefreshTickTimeout = null;
- if (timeout) {
- clearTimeout(timeout);
- }
- }
- /**
- * Starts an auto-refresh process in the background. The session is checked
- * every few seconds. Close to the time of expiration a process is started to
- * refresh the session. If refreshing fails it will be retried for as long as
- * necessary.
- *
- * If you set the {@link GoTrueClientOptions#autoRefreshToken} you don't need
- * to call this function, it will be called for you.
- *
- * On browsers the refresh process works only when the tab/window is in the
- * foreground to conserve resources as well as prevent race conditions and
- * flooding auth with requests. If you call this method any managed
- * visibility change callback will be removed and you must manage visibility
- * changes on your own.
- *
- * On non-browser platforms the refresh process works *continuously* in the
- * background, which may not be desirable. You should hook into your
- * platform's foreground indication mechanism and call these methods
- * appropriately to conserve resources.
- *
- * {@see #stopAutoRefresh}
- *
- * @category Auth
- *
- * @remarks
- * - Only useful in non-browser environments such as React Native or Electron.
- * - The Supabase Auth library automatically starts and stops proactively refreshing the session when a tab is focused or not.
- * - On non-browser platforms, such as mobile or desktop apps built with web technologies, the library is not able to effectively determine whether the application is _focused_ or not.
- * - To give this hint to the application, you should be calling this method when the app is in focus and calling `supabase.auth.stopAutoRefresh()` when it's out of focus.
- *
- * @example Start and stop auto refresh in React Native
- * ```js
- * import { AppState } from 'react-native'
- *
- * // make sure you register this only once!
- * AppState.addEventListener('change', (state) => {
- * if (state === 'active') {
- * supabase.auth.startAutoRefresh()
- * } else {
- * supabase.auth.stopAutoRefresh()
- * }
- * })
- * ```
- */
- async startAutoRefresh() {
- this._removeVisibilityChangedCallback();
- await this._startAutoRefresh();
- }
- /**
- * Stops an active auto refresh process running in the background (if any).
- *
- * If you call this method any managed visibility change callback will be
- * removed and you must manage visibility changes on your own.
- *
- * See {@link #startAutoRefresh} for more details.
- *
- * @category Auth
- *
- * @remarks
- * - Only useful in non-browser environments such as React Native or Electron.
- * - The Supabase Auth library automatically starts and stops proactively refreshing the session when a tab is focused or not.
- * - On non-browser platforms, such as mobile or desktop apps built with web technologies, the library is not able to effectively determine whether the application is _focused_ or not.
- * - When your application goes in the background or out of focus, call this method to stop the proactive refreshing of the session.
- *
- * @example Start and stop auto refresh in React Native
- * ```js
- * import { AppState } from 'react-native'
- *
- * // make sure you register this only once!
- * AppState.addEventListener('change', (state) => {
- * if (state === 'active') {
- * supabase.auth.startAutoRefresh()
- * } else {
- * supabase.auth.stopAutoRefresh()
- * }
- * })
- * ```
- */
- async stopAutoRefresh() {
- this._removeVisibilityChangedCallback();
- await this._stopAutoRefresh();
- }
- /**
- * Runs the auto refresh token tick.
- */
- async _autoRefreshTokenTick() {
- this._debug('#_autoRefreshTokenTick()', 'begin');
- try {
- await this._acquireLock(0, async () => {
- try {
- const now = Date.now();
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, } = result;
- if (!session || !session.refresh_token || !session.expires_at) {
- this._debug('#_autoRefreshTokenTick()', 'no session');
- return;
- }
- // session will expire in this many ticks (or has already expired if <= 0)
- const expiresInTicks = Math.floor((session.expires_at * 1000 - now) / constants_1.AUTO_REFRESH_TICK_DURATION_MS);
- this._debug('#_autoRefreshTokenTick()', `access token expires in ${expiresInTicks} ticks, a tick lasts ${constants_1.AUTO_REFRESH_TICK_DURATION_MS}ms, refresh threshold is ${constants_1.AUTO_REFRESH_TICK_THRESHOLD} ticks`);
- if (expiresInTicks <= constants_1.AUTO_REFRESH_TICK_THRESHOLD) {
- await this._callRefreshToken(session.refresh_token);
- }
- });
- }
- catch (e) {
- console.error('Auto refresh tick failed with error. This is likely a transient error.', e);
- }
- }
- finally {
- this._debug('#_autoRefreshTokenTick()', 'end');
- }
- });
- }
- catch (e) {
- if (e instanceof locks_1.LockAcquireTimeoutError) {
- this._debug('auto refresh token tick lock not available');
- }
- else {
- throw e;
- }
- }
- }
- /**
- * Registers callbacks on the browser / platform, which in-turn run
- * algorithms when the browser window/tab are in foreground. On non-browser
- * platforms it assumes always foreground.
- */
- async _handleVisibilityChange() {
- this._debug('#_handleVisibilityChange()');
- if (!(0, helpers_1.isBrowser)() || !(window === null || window === void 0 ? void 0 : window.addEventListener)) {
- if (this.autoRefreshToken) {
- // in non-browser environments the refresh token ticker runs always
- this.startAutoRefresh();
- }
- return false;
- }
- try {
- this.visibilityChangedCallback = async () => {
- try {
- await this._onVisibilityChanged(false);
- }
- catch (error) {
- this._debug('#visibilityChangedCallback', 'error', error);
- }
- };
- window === null || window === void 0 ? void 0 : window.addEventListener('visibilitychange', this.visibilityChangedCallback);
- // now immediately call the visbility changed callback to setup with the
- // current visbility state
- await this._onVisibilityChanged(true); // initial call
- }
- catch (error) {
- console.error('_handleVisibilityChange', error);
- }
- }
- /**
- * Callback registered with `window.addEventListener('visibilitychange')`.
- */
- async _onVisibilityChanged(calledFromInitialize) {
- const methodName = `#_onVisibilityChanged(${calledFromInitialize})`;
- this._debug(methodName, 'visibilityState', document.visibilityState);
- if (document.visibilityState === 'visible') {
- if (this.autoRefreshToken) {
- // in browser environments the refresh token ticker runs only on focused tabs
- // which prevents race conditions
- this._startAutoRefresh();
- }
- if (!calledFromInitialize) {
- // called when the visibility has changed, i.e. the browser
- // transitioned from hidden -> visible so we need to see if the session
- // should be recovered immediately... but to do that we need to acquire
- // the lock first asynchronously
- await this.initializePromise;
- await this._acquireLock(this.lockAcquireTimeout, async () => {
- if (document.visibilityState !== 'visible') {
- this._debug(methodName, 'acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting');
- // visibility has changed while waiting for the lock, abort
- return;
- }
- // recover the session
- await this._recoverAndRefresh();
- });
- }
- }
- else if (document.visibilityState === 'hidden') {
- if (this.autoRefreshToken) {
- this._stopAutoRefresh();
- }
- }
- }
- /**
- * Generates the relevant login URL for a third-party provider.
- * @param options.redirectTo A URL or mobile address to send the user to after they are confirmed.
- * @param options.scopes A space-separated list of scopes granted to the OAuth application.
- * @param options.queryParams An object of key-value pairs containing query parameters granted to the OAuth application.
- */
- async _getUrlForProvider(url, provider, options) {
- const urlParams = [`provider=${encodeURIComponent(provider)}`];
- if (options === null || options === void 0 ? void 0 : options.redirectTo) {
- urlParams.push(`redirect_to=${encodeURIComponent(options.redirectTo)}`);
- }
- if (options === null || options === void 0 ? void 0 : options.scopes) {
- urlParams.push(`scopes=${encodeURIComponent(options.scopes)}`);
- }
- if (this.flowType === 'pkce') {
- const [codeChallenge, codeChallengeMethod] = await (0, helpers_1.getCodeChallengeAndMethod)(this.storage, this.storageKey);
- const flowParams = new URLSearchParams({
- code_challenge: `${encodeURIComponent(codeChallenge)}`,
- code_challenge_method: `${encodeURIComponent(codeChallengeMethod)}`,
- });
- urlParams.push(flowParams.toString());
- }
- if (options === null || options === void 0 ? void 0 : options.queryParams) {
- const query = new URLSearchParams(options.queryParams);
- urlParams.push(query.toString());
- }
- if (options === null || options === void 0 ? void 0 : options.skipBrowserRedirect) {
- urlParams.push(`skip_http_redirect=${options.skipBrowserRedirect}`);
- }
- return `${url}?${urlParams.join('&')}`;
- }
- async _unenroll(params) {
- try {
- return await this._useSession(async (result) => {
- var _a;
- const { data: sessionData, error: sessionError } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- return await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/factors/${params.factorId}`, {
- headers: this.headers,
- jwt: (_a = sessionData === null || sessionData === void 0 ? void 0 : sessionData.session) === null || _a === void 0 ? void 0 : _a.access_token,
- });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- async _enroll(params) {
- try {
- return await this._useSession(async (result) => {
- var _a, _b;
- const { data: sessionData, error: sessionError } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- const body = Object.assign({ friendly_name: params.friendlyName, factor_type: params.factorType }, (params.factorType === 'phone'
- ? { phone: params.phone }
- : params.factorType === 'totp'
- ? { issuer: params.issuer }
- : {}));
- const { data, error } = (await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/factors`, {
- body,
- headers: this.headers,
- jwt: (_a = sessionData === null || sessionData === void 0 ? void 0 : sessionData.session) === null || _a === void 0 ? void 0 : _a.access_token,
- }));
- if (error) {
- return this._returnResult({ data: null, error });
- }
- if (params.factorType === 'totp' && data.type === 'totp' && ((_b = data === null || data === void 0 ? void 0 : data.totp) === null || _b === void 0 ? void 0 : _b.qr_code)) {
- data.totp.qr_code = `data:image/svg+xml;utf-8,${data.totp.qr_code}`;
- }
- return this._returnResult({ data, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- async _verify(params) {
- return this._acquireLock(this.lockAcquireTimeout, async () => {
- try {
- return await this._useSession(async (result) => {
- var _a;
- const { data: sessionData, error: sessionError } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- const body = Object.assign({ challenge_id: params.challengeId }, ('webauthn' in params
- ? {
- webauthn: Object.assign(Object.assign({}, params.webauthn), { credential_response: params.webauthn.type === 'create'
- ? (0, webauthn_1.serializeCredentialCreationResponse)(params.webauthn.credential_response)
- : (0, webauthn_1.serializeCredentialRequestResponse)(params.webauthn.credential_response) }),
- }
- : { code: params.code }));
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/factors/${params.factorId}/verify`, {
- body,
- headers: this.headers,
- jwt: (_a = sessionData === null || sessionData === void 0 ? void 0 : sessionData.session) === null || _a === void 0 ? void 0 : _a.access_token,
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- await this._saveSession(Object.assign({ expires_at: Math.round(Date.now() / 1000) + data.expires_in }, data));
- await this._notifyAllSubscribers('MFA_CHALLENGE_VERIFIED', data);
- return this._returnResult({ data, error });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- });
- }
- async _challenge(params) {
- return this._acquireLock(this.lockAcquireTimeout, async () => {
- try {
- return await this._useSession(async (result) => {
- var _a;
- const { data: sessionData, error: sessionError } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- const response = (await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/factors/${params.factorId}/challenge`, {
- body: params,
- headers: this.headers,
- jwt: (_a = sessionData === null || sessionData === void 0 ? void 0 : sessionData.session) === null || _a === void 0 ? void 0 : _a.access_token,
- }));
- if (response.error) {
- return response;
- }
- const { data } = response;
- if (data.type !== 'webauthn') {
- return { data, error: null };
- }
- switch (data.webauthn.type) {
- case 'create':
- return {
- data: Object.assign(Object.assign({}, data), { webauthn: Object.assign(Object.assign({}, data.webauthn), { credential_options: Object.assign(Object.assign({}, data.webauthn.credential_options), { publicKey: (0, webauthn_1.deserializeCredentialCreationOptions)(data.webauthn.credential_options.publicKey) }) }) }),
- error: null,
- };
- case 'request':
- return {
- data: Object.assign(Object.assign({}, data), { webauthn: Object.assign(Object.assign({}, data.webauthn), { credential_options: Object.assign(Object.assign({}, data.webauthn.credential_options), { publicKey: (0, webauthn_1.deserializeCredentialRequestOptions)(data.webauthn.credential_options.publicKey) }) }) }),
- error: null,
- };
- }
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- });
- }
- /**
- * {@see GoTrueMFAApi#challengeAndVerify}
- */
- async _challengeAndVerify(params) {
- // both _challenge and _verify independently acquire the lock, so no need
- // to acquire it here
- const { data: challengeData, error: challengeError } = await this._challenge({
- factorId: params.factorId,
- });
- if (challengeError) {
- return this._returnResult({ data: null, error: challengeError });
- }
- return await this._verify({
- factorId: params.factorId,
- challengeId: challengeData.id,
- code: params.code,
- });
- }
- /**
- * {@see GoTrueMFAApi#listFactors}
- */
- async _listFactors() {
- var _a;
- // use #getUser instead of #_getUser as the former acquires a lock
- const { data: { user }, error: userError, } = await this.getUser();
- if (userError) {
- return { data: null, error: userError };
- }
- const data = {
- all: [],
- phone: [],
- totp: [],
- webauthn: [],
- };
- // loop over the factors ONCE
- for (const factor of (_a = user === null || user === void 0 ? void 0 : user.factors) !== null && _a !== void 0 ? _a : []) {
- data.all.push(factor);
- if (factor.status === 'verified') {
- ;
- data[factor.factor_type].push(factor);
- }
- }
- return {
- data,
- error: null,
- };
- }
- /**
- * {@see GoTrueMFAApi#getAuthenticatorAssuranceLevel}
- */
- async _getAuthenticatorAssuranceLevel(jwt) {
- var _a, _b, _c, _d;
- if (jwt) {
- try {
- const { payload } = (0, helpers_1.decodeJWT)(jwt);
- let currentLevel = null;
- if (payload.aal) {
- currentLevel = payload.aal;
- }
- let nextLevel = currentLevel;
- const { data: { user }, error: userError, } = await this.getUser(jwt);
- if (userError) {
- return this._returnResult({ data: null, error: userError });
- }
- const verifiedFactors = (_b = (_a = user === null || user === void 0 ? void 0 : user.factors) === null || _a === void 0 ? void 0 : _a.filter((factor) => factor.status === 'verified')) !== null && _b !== void 0 ? _b : [];
- if (verifiedFactors.length > 0) {
- nextLevel = 'aal2';
- }
- const currentAuthenticationMethods = payload.amr || [];
- return { data: { currentLevel, nextLevel, currentAuthenticationMethods }, error: null };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- const { data: { session }, error: sessionError, } = await this.getSession();
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return {
- data: { currentLevel: null, nextLevel: null, currentAuthenticationMethods: [] },
- error: null,
- };
- }
- const { payload } = (0, helpers_1.decodeJWT)(session.access_token);
- let currentLevel = null;
- if (payload.aal) {
- currentLevel = payload.aal;
- }
- let nextLevel = currentLevel;
- const verifiedFactors = (_d = (_c = session.user.factors) === null || _c === void 0 ? void 0 : _c.filter((factor) => factor.status === 'verified')) !== null && _d !== void 0 ? _d : [];
- if (verifiedFactors.length > 0) {
- nextLevel = 'aal2';
- }
- const currentAuthenticationMethods = payload.amr || [];
- return { data: { currentLevel, nextLevel, currentAuthenticationMethods }, error: null };
- }
- /**
- * Retrieves details about an OAuth authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * Returns authorization details including client info, scopes, and user information.
- * If the response includes only a redirect_url field, it means consent was already given - the caller
- * should handle the redirect manually if needed.
- */
- async _getAuthorizationDetails(authorizationId) {
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/oauth/authorizations/${authorizationId}`, {
- headers: this.headers,
- jwt: session.access_token,
- xform: (data) => ({ data, error: null }),
- });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Approves an OAuth authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- async _approveAuthorization(authorizationId, options) {
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const response = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/oauth/authorizations/${authorizationId}/consent`, {
- headers: this.headers,
- jwt: session.access_token,
- body: { action: 'approve' },
- xform: (data) => ({ data, error: null }),
- });
- if (response.data && response.data.redirect_url) {
- // Automatically redirect in browser unless skipBrowserRedirect is true
- if ((0, helpers_1.isBrowser)() && !(options === null || options === void 0 ? void 0 : options.skipBrowserRedirect)) {
- window.location.assign(response.data.redirect_url);
- }
- }
- return response;
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Denies an OAuth authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- async _denyAuthorization(authorizationId, options) {
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const response = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/oauth/authorizations/${authorizationId}/consent`, {
- headers: this.headers,
- jwt: session.access_token,
- body: { action: 'deny' },
- xform: (data) => ({ data, error: null }),
- });
- if (response.data && response.data.redirect_url) {
- // Automatically redirect in browser unless skipBrowserRedirect is true
- if ((0, helpers_1.isBrowser)() && !(options === null || options === void 0 ? void 0 : options.skipBrowserRedirect)) {
- window.location.assign(response.data.redirect_url);
- }
- }
- return response;
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Lists all OAuth grants that the authenticated user has authorized.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- async _listOAuthGrants() {
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/user/oauth/grants`, {
- headers: this.headers,
- jwt: session.access_token,
- xform: (data) => ({ data, error: null }),
- });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Revokes a user's OAuth grant for a specific client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
- async _revokeOAuthGrant(options) {
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/user/oauth/grants`, {
- headers: this.headers,
- jwt: session.access_token,
- query: { client_id: options.clientId },
- noResolveJson: true,
- });
- return { data: {}, error: null };
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- async fetchJwk(kid, jwks = { keys: [] }) {
- // try fetching from the supplied jwks
- let jwk = jwks.keys.find((key) => key.kid === kid);
- if (jwk) {
- return jwk;
- }
- const now = Date.now();
- // try fetching from cache
- jwk = this.jwks.keys.find((key) => key.kid === kid);
- // jwk exists and jwks isn't stale
- if (jwk && this.jwks_cached_at + constants_1.JWKS_TTL > now) {
- return jwk;
- }
- // jwk isn't cached in memory so we need to fetch it from the well-known endpoint
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/.well-known/jwks.json`, {
- headers: this.headers,
- });
- if (error) {
- throw error;
- }
- if (!data.keys || data.keys.length === 0) {
- return null;
- }
- this.jwks = data;
- this.jwks_cached_at = now;
- // Find the signing key
- jwk = data.keys.find((key) => key.kid === kid);
- if (!jwk) {
- return null;
- }
- return jwk;
- }
- /**
- * Extracts the JWT claims present in the access token by first verifying the
- * JWT against the server's JSON Web Key Set endpoint
- * `/.well-known/jwks.json` which is often cached, resulting in significantly
- * faster responses. Prefer this method over {@link #getUser} which always
- * sends a request to the Auth server for each JWT.
- *
- * If the project is not using an asymmetric JWT signing key (like ECC or
- * RSA) it always sends a request to the Auth server (similar to {@link
- * #getUser}) to verify the JWT.
- *
- * @param jwt An optional specific JWT you wish to verify, not the one you
- * can obtain from {@link #getSession}.
- * @param options Various additional options that allow you to customize the
- * behavior of this method.
- *
- * @category Auth
- *
- * @remarks
- * - Parses the user's [access token](/docs/guides/auth/sessions#access-token-jwt-claims) as a [JSON Web Token (JWT)](/docs/guides/auth/jwts) and returns its components if valid and not expired.
- * - If your project is using asymmetric JWT signing keys, then the verification is done locally usually without a network request using the [WebCrypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API).
- * - A network request is sent to your project's JWT signing key discovery endpoint `https://project-id.supabase.co/auth/v1/.well-known/jwks.json`, which is cached locally. If your environment is ephemeral, such as a Lambda function that is destroyed after every request, a network request will be sent for each new invocation. Supabase provides a network-edge cache providing fast responses for these situations.
- * - If the user's access token is about to expire when calling this function, the user's session will first be refreshed before validating the JWT.
- * - If your project is using a symmetric secret to sign the JWT, it always sends a request similar to `getUser()` to validate the JWT at the server before returning the decoded token. This is also used if the WebCrypto API is not available in the environment. Make sure you polyfill it in such situations.
- * - The returned claims can be customized per project using the [Custom Access Token Hook](/docs/guides/auth/auth-hooks/custom-access-token-hook).
- *
- * @example Get JWT claims, header and signature
- * ```js
- * const { data, error } = await supabase.auth.getClaims()
- * ```
- *
- * @exampleResponse Get JWT claims, header and signature
- * ```json
- * {
- * "data": {
- * "claims": {
- * "aal": "aal1",
- * "amr": [{
- * "method": "email",
- * "timestamp": 1715766000
- * }],
- * "app_metadata": {},
- * "aud": "authenticated",
- * "email": "example@email.com",
- * "exp": 1715769600,
- * "iat": 1715766000,
- * "is_anonymous": false,
- * "iss": "https://project-id.supabase.co/auth/v1",
- * "phone": "+13334445555",
- * "role": "authenticated",
- * "session_id": "11111111-1111-1111-1111-111111111111",
- * "sub": "11111111-1111-1111-1111-111111111111",
- * "user_metadata": {}
- * },
- * "header": {
- * "alg": "RS256",
- * "typ": "JWT",
- * "kid": "11111111-1111-1111-1111-111111111111"
- * },
- * "signature": [/** Uint8Array *\/],
- * },
- * "error": null
- * }
- * ```
- */
- async getClaims(jwt, options = {}) {
- try {
- let token = jwt;
- if (!token) {
- const { data, error } = await this.getSession();
- if (error || !data.session) {
- return this._returnResult({ data: null, error });
- }
- token = data.session.access_token;
- }
- const { header, payload, signature, raw: { header: rawHeader, payload: rawPayload }, } = (0, helpers_1.decodeJWT)(token);
- if (!(options === null || options === void 0 ? void 0 : options.allowExpired)) {
- // Reject expired JWTs should only happen if jwt argument was passed
- (0, helpers_1.validateExp)(payload.exp);
- }
- const signingKey = !header.alg ||
- header.alg.startsWith('HS') ||
- !header.kid ||
- !('crypto' in globalThis && 'subtle' in globalThis.crypto)
- ? null
- : await this.fetchJwk(header.kid, (options === null || options === void 0 ? void 0 : options.keys) ? { keys: options.keys } : options === null || options === void 0 ? void 0 : options.jwks);
- // If symmetric algorithm or WebCrypto API is unavailable, fallback to getUser()
- if (!signingKey) {
- const { error } = await this.getUser(token);
- if (error) {
- throw error;
- }
- // getUser succeeds so the claims in the JWT can be trusted
- return {
- data: {
- claims: payload,
- header,
- signature,
- },
- error: null,
- };
- }
- const algorithm = (0, helpers_1.getAlgorithm)(header.alg);
- // Convert JWK to CryptoKey
- const publicKey = await crypto.subtle.importKey('jwk', signingKey, algorithm, true, [
- 'verify',
- ]);
- // Verify the signature
- const isValid = await crypto.subtle.verify(algorithm, publicKey, signature, (0, base64url_1.stringToUint8Array)(`${rawHeader}.${rawPayload}`));
- if (!isValid) {
- throw new errors_1.AuthInvalidJwtError('Invalid JWT signature');
- }
- // If verification succeeds, decode and return claims
- return {
- data: {
- claims: payload,
- header,
- signature,
- },
- error: null,
- };
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- // --- Passkey Methods ---
- /**
- * Sign in with a passkey. Handles the full WebAuthn ceremony:
- * 1. Fetches authentication challenge from server
- * 2. Prompts user via navigator.credentials.get()
- * 3. Verifies credential with server and creates session
- *
- * Requires `auth.experimental.passkey: true`.
- *
- * @category Auth
- */
- async signInWithPasskey(credentials) {
- var _a, _b, _c;
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- if (!(0, webauthn_1.browserSupportsWebAuthn)()) {
- return this._returnResult({
- data: null,
- error: new errors_1.AuthUnknownError('Browser does not support WebAuthn', null),
- });
- }
- // 1. Get challenge options from server
- const { data: options, error: optionsError } = await this._startPasskeyAuthentication({
- options: { captchaToken: (_a = credentials === null || credentials === void 0 ? void 0 : credentials.options) === null || _a === void 0 ? void 0 : _a.captchaToken },
- });
- if (optionsError || !options) {
- return this._returnResult({ data: null, error: optionsError });
- }
- // 2. Deserialize and prompt user via browser WebAuthn API
- const publicKeyOptions = (0, webauthn_1.deserializeCredentialRequestOptions)(options.options);
- const signal = (_c = (_b = credentials === null || credentials === void 0 ? void 0 : credentials.options) === null || _b === void 0 ? void 0 : _b.signal) !== null && _c !== void 0 ? _c : webauthn_1.webAuthnAbortService.createNewAbortSignal();
- const { data: credential, error: credentialError } = await (0, webauthn_1.getCredential)({
- publicKey: publicKeyOptions,
- signal,
- });
- if (credentialError || !credential) {
- return this._returnResult({
- data: null,
- error: credentialError !== null && credentialError !== void 0 ? credentialError : new errors_1.AuthUnknownError('WebAuthn ceremony failed', null),
- });
- }
- // 3. Serialize and verify with server
- const serialized = (0, webauthn_1.serializeCredentialRequestResponse)(credential);
- return this._verifyPasskeyAuthentication({
- challengeId: options.challenge_id,
- credential: serialized,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Register a passkey for the current authenticated user. Handles the full WebAuthn ceremony:
- * 1. Fetches registration challenge from server
- * 2. Prompts user via navigator.credentials.create()
- * 3. Verifies credential with server
- *
- * Requires an active session. Requires `auth.experimental.passkey: true`.
- *
- * @category Auth
- */
- async registerPasskey(credentials) {
- var _a, _b;
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- if (!(0, webauthn_1.browserSupportsWebAuthn)()) {
- return this._returnResult({
- data: null,
- error: new errors_1.AuthUnknownError('Browser does not support WebAuthn', null),
- });
- }
- // 1. Get challenge options from server
- const { data: options, error: optionsError } = await this._startPasskeyRegistration();
- if (optionsError || !options) {
- return this._returnResult({ data: null, error: optionsError });
- }
- // 2. Deserialize and prompt user via browser WebAuthn API
- const publicKeyOptions = (0, webauthn_1.deserializeCredentialCreationOptions)(options.options);
- const signal = (_b = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.options) === null || _a === void 0 ? void 0 : _a.signal) !== null && _b !== void 0 ? _b : webauthn_1.webAuthnAbortService.createNewAbortSignal();
- const { data: credential, error: credentialError } = await (0, webauthn_1.createCredential)({
- publicKey: publicKeyOptions,
- signal,
- });
- if (credentialError || !credential) {
- return this._returnResult({
- data: null,
- error: credentialError !== null && credentialError !== void 0 ? credentialError : new errors_1.AuthUnknownError('WebAuthn ceremony failed', null),
- });
- }
- // 3. Serialize and verify with server
- const serialized = (0, webauthn_1.serializeCredentialCreationResponse)(credential);
- return this._verifyPasskeyRegistration({
- challengeId: options.challenge_id,
- credential: serialized,
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Start passkey registration for the current authenticated user.
- * Returns WebAuthn credential creation options to pass to navigator.credentials.create().
- */
- async _startPasskeyRegistration() {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/passkeys/registration/options`, {
- headers: this.headers,
- jwt: session.access_token,
- body: {},
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- return this._returnResult({ data, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Verify passkey registration with the credential response.
- * The credentialResponse should be the serialized output of navigator.credentials.create().
- */
- async _verifyPasskeyRegistration(params) {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/passkeys/registration/verify`, {
- headers: this.headers,
- jwt: session.access_token,
- body: {
- challenge_id: params.challengeId,
- credential: params.credential,
- },
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- return this._returnResult({ data, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Start passkey authentication.
- * Returns WebAuthn credential request options to pass to navigator.credentials.get().
- */
- async _startPasskeyAuthentication(params) {
- var _a;
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/passkeys/authentication/options`, {
- headers: this.headers,
- body: {
- gotrue_meta_security: { captcha_token: (_a = params === null || params === void 0 ? void 0 : params.options) === null || _a === void 0 ? void 0 : _a.captchaToken },
- },
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- return this._returnResult({ data, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Verify passkey authentication and create a session.
- * The credential should be the serialized output of navigator.credentials.get().
- */
- async _verifyPasskeyAuthentication(params) {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/passkeys/authentication/verify`, {
- headers: this.headers,
- body: {
- challenge_id: params.challengeId,
- credential: params.credential,
- },
- xform: fetch_1._sessionResponse,
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- if (data.session) {
- await this._saveSession(data.session);
- await this._notifyAllSubscribers('SIGNED_IN', data.session);
- }
- return this._returnResult({ data, error: null });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * List all passkeys for the current user.
- */
- async _listPasskeys() {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/passkeys`, {
- headers: this.headers,
- jwt: session.access_token,
- xform: (data) => ({ data, error: null }),
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- return this._returnResult({ data, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Update a passkey.
- */
- async _updatePasskey(params) {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const { data, error } = await (0, fetch_1._request)(this.fetch, 'PATCH', `${this.url}/passkeys/${params.passkeyId}`, {
- headers: this.headers,
- jwt: session.access_token,
- body: { friendly_name: params.friendlyName },
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- return this._returnResult({ data, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
- /**
- * Delete a passkey.
- */
- async _deletePasskey(params) {
- (0, helpers_1.assertPasskeyExperimentalEnabled)(this.experimental);
- try {
- return await this._useSession(async (result) => {
- const { data: { session }, error: sessionError, } = result;
- if (sessionError) {
- return this._returnResult({ data: null, error: sessionError });
- }
- if (!session) {
- return this._returnResult({ data: null, error: new errors_1.AuthSessionMissingError() });
- }
- const { error } = await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/passkeys/${params.passkeyId}`, {
- headers: this.headers,
- jwt: session.access_token,
- noResolveJson: true,
- });
- if (error) {
- return this._returnResult({ data: null, error });
- }
- return this._returnResult({ data: null, error: null });
- });
- }
- catch (error) {
- if ((0, errors_1.isAuthError)(error)) {
- return this._returnResult({ data: null, error });
- }
- throw error;
- }
- }
-}
-GoTrueClient.nextInstanceID = {};
-exports.default = GoTrueClient;
-//# sourceMappingURL=GoTrueClient.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js.map b/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js.map
deleted file mode 100644
index 90c545c..0000000
--- a/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GoTrueClient.js","sourceRoot":"","sources":["../../src/GoTrueClient.ts"],"names":[],"mappings":";;;AAAA,8EAA6C;AAC7C,+CAQwB;AACxB,yCAeqB;AACrB,uCAOoB;AACpB,2CAoBsB;AACtB,uDAA+D;AAC/D,uCAAoE;AACpE,+CAAoD;AACpD,2CAAuC;AAEvC,+CAAsE;AAgGtE,kDAO4B;AAC5B,6CAUuB;AAOvB,IAAA,8BAAkB,GAAE,CAAA,CAAC,8BAA8B;AAEnD,MAAM,eAAe,GAGjB;IACF,GAAG,EAAE,sBAAU;IACf,UAAU,EAAE,uBAAW;IACvB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;IACxB,OAAO,EAAE,2BAAe;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,KAAK;IACZ,4BAA4B,EAAE,KAAK;IACnC,YAAY,EAAE,KAAK;IACnB,kBAAkB,EAAE,IAAI,EAAE,YAAY;IACtC,kBAAkB,EAAE,KAAK;IACzB,YAAY,EAAE,EAAE;CACjB,CAAA;AAED,KAAK,UAAU,QAAQ,CAAI,IAAY,EAAE,cAAsB,EAAE,EAAoB;IACnF,OAAO,MAAM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C;gBACD,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,gCAAuB,EAAE,EAAE,CAAC,CAAA;gBACjF,CAAC;gBACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAA,gBAAQ,EAC9B,IAAI,CAAC,KAAK,EACV,QAAQ,EACR,GAAG,IAAI,CAAC,GAAG,aAAa,MAAM,CAAC,SAAS,EAAE,EAC1C;oBACE,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,GAAG,EAAE,OAAO,CAAC,YAAY;oBACzB,aAAa,EAAE,IAAI;iBACpB,CACF,CAAA;gBACD,IAAI,KAAK,EAAE,CAAC;oBACV,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;gBAClD,CAAC;gBACD,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;YACxD,CAAC,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,IAAA,oBAAW,EAAC,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;YAClD,CAAC;YACD,MAAM,KAAK,CAAA;QACb,CAAC;IACH,CAAC;;AA7/Lc,2BAAc,GAA2B,EAAE,AAA7B,CAA6B;kBADvC,YAAY"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/index.d.ts b/node_modules/@supabase/auth-js/dist/main/index.d.ts
deleted file mode 100644
index 62b23d0..0000000
--- a/node_modules/@supabase/auth-js/dist/main/index.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import GoTrueAdminApi from './GoTrueAdminApi';
-import GoTrueClient from './GoTrueClient';
-import AuthAdminApi from './AuthAdminApi';
-import AuthClient from './AuthClient';
-export { GoTrueAdminApi, GoTrueClient, AuthAdminApi, AuthClient };
-export * from './lib/types';
-export * from './lib/errors';
-export { navigatorLock, NavigatorLockAcquireTimeoutError, internals as lockInternals, processLock, } from './lib/locks';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/index.d.ts.map b/node_modules/@supabase/auth-js/dist/main/index.d.ts.map
deleted file mode 100644
index 884248d..0000000
--- a/node_modules/@supabase/auth-js/dist/main/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAA;AACjE,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,OAAO,EACL,aAAa,EACb,gCAAgC,EAChC,SAAS,IAAI,aAAa,EAC1B,WAAW,GACZ,MAAM,aAAa,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/index.js b/node_modules/@supabase/auth-js/dist/main/index.js
deleted file mode 100644
index 27f9e50..0000000
--- a/node_modules/@supabase/auth-js/dist/main/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.processLock = exports.lockInternals = exports.NavigatorLockAcquireTimeoutError = exports.navigatorLock = exports.AuthClient = exports.AuthAdminApi = exports.GoTrueClient = exports.GoTrueAdminApi = void 0;
-const tslib_1 = require("tslib");
-const GoTrueAdminApi_1 = tslib_1.__importDefault(require("./GoTrueAdminApi"));
-exports.GoTrueAdminApi = GoTrueAdminApi_1.default;
-const GoTrueClient_1 = tslib_1.__importDefault(require("./GoTrueClient"));
-exports.GoTrueClient = GoTrueClient_1.default;
-const AuthAdminApi_1 = tslib_1.__importDefault(require("./AuthAdminApi"));
-exports.AuthAdminApi = AuthAdminApi_1.default;
-const AuthClient_1 = tslib_1.__importDefault(require("./AuthClient"));
-exports.AuthClient = AuthClient_1.default;
-tslib_1.__exportStar(require("./lib/types"), exports);
-tslib_1.__exportStar(require("./lib/errors"), exports);
-var locks_1 = require("./lib/locks");
-Object.defineProperty(exports, "navigatorLock", { enumerable: true, get: function () { return locks_1.navigatorLock; } });
-Object.defineProperty(exports, "NavigatorLockAcquireTimeoutError", { enumerable: true, get: function () { return locks_1.NavigatorLockAcquireTimeoutError; } });
-Object.defineProperty(exports, "lockInternals", { enumerable: true, get: function () { return locks_1.internals; } });
-Object.defineProperty(exports, "processLock", { enumerable: true, get: function () { return locks_1.processLock; } });
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/index.js.map b/node_modules/@supabase/auth-js/dist/main/index.js.map
deleted file mode 100644
index ca499bc..0000000
--- a/node_modules/@supabase/auth-js/dist/main/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,8EAA6C;AAIpC,yBAJF,wBAAc,CAIE;AAHvB,0EAAyC;AAGhB,uBAHlB,sBAAY,CAGkB;AAFrC,0EAAyC;AAEF,uBAFhC,sBAAY,CAEgC;AADnD,sEAAqC;AACgB,qBAD9C,oBAAU,CAC8C;AAC/D,sDAA2B;AAC3B,uDAA4B;AAC5B,qCAKoB;AAJlB,sGAAA,aAAa,OAAA;AACb,yHAAA,gCAAgC,OAAA;AAChC,sGAAA,SAAS,OAAiB;AAC1B,oGAAA,WAAW,OAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts
deleted file mode 100644
index 62276a3..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Avoid modifying this file. It's part of
- * https://github.com/supabase-community/base64url-js. Submit all fixes on
- * that repo!
- */
-import { Uint8Array_ } from './webauthn.dom';
-/**
- * Converts a byte to a Base64-URL string.
- *
- * @param byte The byte to convert, or null to flush at the end of the byte sequence.
- * @param state The Base64 conversion state. Pass an initial value of `{ queue: 0, queuedBits: 0 }`.
- * @param emit A function called with the next Base64 character when ready.
- */
-export declare function byteToBase64URL(byte: number | null, state: {
- queue: number;
- queuedBits: number;
-}, emit: (char: string) => void): void;
-/**
- * Converts a String char code (extracted using `string.charCodeAt(position)`) to a sequence of Base64-URL characters.
- *
- * @param charCode The char code of the JavaScript string.
- * @param state The Base64 state. Pass an initial value of `{ queue: 0, queuedBits: 0 }`.
- * @param emit A function called with the next byte.
- */
-export declare function byteFromBase64URL(charCode: number, state: {
- queue: number;
- queuedBits: number;
-}, emit: (byte: number) => void): void;
-/**
- * Converts a JavaScript string (which may include any valid character) into a
- * Base64-URL encoded string. The string is first encoded in UTF-8 which is
- * then encoded as Base64-URL.
- *
- * @param str The string to convert.
- */
-export declare function stringToBase64URL(str: string): string;
-/**
- * Converts a Base64-URL encoded string into a JavaScript string. It is assumed
- * that the underlying string has been encoded as UTF-8.
- *
- * @param str The Base64-URL encoded string.
- */
-export declare function stringFromBase64URL(str: string): string;
-/**
- * Converts a Unicode codepoint to a multi-byte UTF-8 sequence.
- *
- * @param codepoint The Unicode codepoint.
- * @param emit Function which will be called for each UTF-8 byte that represents the codepoint.
- */
-export declare function codepointToUTF8(codepoint: number, emit: (byte: number) => void): void;
-/**
- * Converts a JavaScript string to a sequence of UTF-8 bytes.
- *
- * @param str The string to convert to UTF-8.
- * @param emit Function which will be called for each UTF-8 byte of the string.
- */
-export declare function stringToUTF8(str: string, emit: (byte: number) => void): void;
-/**
- * Converts a UTF-8 byte to a Unicode codepoint.
- *
- * @param byte The UTF-8 byte next in the sequence.
- * @param state The shared state between consecutive UTF-8 bytes in the
- * sequence, an object with the shape `{ utf8seq: 0, codepoint: 0 }`.
- * @param emit Function which will be called for each codepoint.
- */
-export declare function stringFromUTF8(byte: number, state: {
- utf8seq: number;
- codepoint: number;
-}, emit: (codepoint: number) => void): void;
-/**
- * Helper functions to convert different types of strings to Uint8Array
- */
-export declare function base64UrlToUint8Array(str: string): Uint8Array_;
-export declare function stringToUint8Array(str: string): Uint8Array_;
-export declare function bytesToBase64URL(bytes: Uint8Array): string;
-//# sourceMappingURL=base64url.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts.map
deleted file mode 100644
index 5a7591c..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"base64url.d.ts","sourceRoot":"","sources":["../../../src/lib/base64url.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAoC5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC5C,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,QAqB7B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC5C,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,QAmB7B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,UAgB5C;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,UAuB9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,QAsB9E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,QAgBrE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAC7C,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,QAuClC;AAED;;GAEG;AAEH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAa9D;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAI3D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,UAcjD"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/base64url.js b/node_modules/@supabase/auth-js/dist/main/lib/base64url.js
deleted file mode 100644
index 547425d..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/base64url.js
+++ /dev/null
@@ -1,269 +0,0 @@
-"use strict";
-/**
- * Avoid modifying this file. It's part of
- * https://github.com/supabase-community/base64url-js. Submit all fixes on
- * that repo!
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.byteToBase64URL = byteToBase64URL;
-exports.byteFromBase64URL = byteFromBase64URL;
-exports.stringToBase64URL = stringToBase64URL;
-exports.stringFromBase64URL = stringFromBase64URL;
-exports.codepointToUTF8 = codepointToUTF8;
-exports.stringToUTF8 = stringToUTF8;
-exports.stringFromUTF8 = stringFromUTF8;
-exports.base64UrlToUint8Array = base64UrlToUint8Array;
-exports.stringToUint8Array = stringToUint8Array;
-exports.bytesToBase64URL = bytesToBase64URL;
-/**
- * An array of characters that encode 6 bits into a Base64-URL alphabet
- * character.
- */
-const TO_BASE64URL = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'.split('');
-/**
- * An array of characters that can appear in a Base64-URL encoded string but
- * should be ignored.
- */
-const IGNORE_BASE64URL = ' \t\n\r='.split('');
-/**
- * An array of 128 numbers that map a Base64-URL character to 6 bits, or if -2
- * used to skip the character, or if -1 used to error out.
- */
-const FROM_BASE64URL = (() => {
- const charMap = new Array(128);
- for (let i = 0; i < charMap.length; i += 1) {
- charMap[i] = -1;
- }
- for (let i = 0; i < IGNORE_BASE64URL.length; i += 1) {
- charMap[IGNORE_BASE64URL[i].charCodeAt(0)] = -2;
- }
- for (let i = 0; i < TO_BASE64URL.length; i += 1) {
- charMap[TO_BASE64URL[i].charCodeAt(0)] = i;
- }
- return charMap;
-})();
-/**
- * Converts a byte to a Base64-URL string.
- *
- * @param byte The byte to convert, or null to flush at the end of the byte sequence.
- * @param state The Base64 conversion state. Pass an initial value of `{ queue: 0, queuedBits: 0 }`.
- * @param emit A function called with the next Base64 character when ready.
- */
-function byteToBase64URL(byte, state, emit) {
- if (byte !== null) {
- state.queue = (state.queue << 8) | byte;
- state.queuedBits += 8;
- while (state.queuedBits >= 6) {
- const pos = (state.queue >> (state.queuedBits - 6)) & 63;
- emit(TO_BASE64URL[pos]);
- state.queuedBits -= 6;
- }
- }
- else if (state.queuedBits > 0) {
- state.queue = state.queue << (6 - state.queuedBits);
- state.queuedBits = 6;
- while (state.queuedBits >= 6) {
- const pos = (state.queue >> (state.queuedBits - 6)) & 63;
- emit(TO_BASE64URL[pos]);
- state.queuedBits -= 6;
- }
- }
-}
-/**
- * Converts a String char code (extracted using `string.charCodeAt(position)`) to a sequence of Base64-URL characters.
- *
- * @param charCode The char code of the JavaScript string.
- * @param state The Base64 state. Pass an initial value of `{ queue: 0, queuedBits: 0 }`.
- * @param emit A function called with the next byte.
- */
-function byteFromBase64URL(charCode, state, emit) {
- const bits = FROM_BASE64URL[charCode];
- if (bits > -1) {
- // valid Base64-URL character
- state.queue = (state.queue << 6) | bits;
- state.queuedBits += 6;
- while (state.queuedBits >= 8) {
- emit((state.queue >> (state.queuedBits - 8)) & 0xff);
- state.queuedBits -= 8;
- }
- }
- else if (bits === -2) {
- // ignore spaces, tabs, newlines, =
- return;
- }
- else {
- throw new Error(`Invalid Base64-URL character "${String.fromCharCode(charCode)}"`);
- }
-}
-/**
- * Converts a JavaScript string (which may include any valid character) into a
- * Base64-URL encoded string. The string is first encoded in UTF-8 which is
- * then encoded as Base64-URL.
- *
- * @param str The string to convert.
- */
-function stringToBase64URL(str) {
- const base64 = [];
- const emitter = (char) => {
- base64.push(char);
- };
- const state = { queue: 0, queuedBits: 0 };
- stringToUTF8(str, (byte) => {
- byteToBase64URL(byte, state, emitter);
- });
- byteToBase64URL(null, state, emitter);
- return base64.join('');
-}
-/**
- * Converts a Base64-URL encoded string into a JavaScript string. It is assumed
- * that the underlying string has been encoded as UTF-8.
- *
- * @param str The Base64-URL encoded string.
- */
-function stringFromBase64URL(str) {
- const conv = [];
- const utf8Emit = (codepoint) => {
- conv.push(String.fromCodePoint(codepoint));
- };
- const utf8State = {
- utf8seq: 0,
- codepoint: 0,
- };
- const b64State = { queue: 0, queuedBits: 0 };
- const byteEmit = (byte) => {
- stringFromUTF8(byte, utf8State, utf8Emit);
- };
- for (let i = 0; i < str.length; i += 1) {
- byteFromBase64URL(str.charCodeAt(i), b64State, byteEmit);
- }
- return conv.join('');
-}
-/**
- * Converts a Unicode codepoint to a multi-byte UTF-8 sequence.
- *
- * @param codepoint The Unicode codepoint.
- * @param emit Function which will be called for each UTF-8 byte that represents the codepoint.
- */
-function codepointToUTF8(codepoint, emit) {
- if (codepoint <= 0x7f) {
- emit(codepoint);
- return;
- }
- else if (codepoint <= 0x7ff) {
- emit(0xc0 | (codepoint >> 6));
- emit(0x80 | (codepoint & 0x3f));
- return;
- }
- else if (codepoint <= 0xffff) {
- emit(0xe0 | (codepoint >> 12));
- emit(0x80 | ((codepoint >> 6) & 0x3f));
- emit(0x80 | (codepoint & 0x3f));
- return;
- }
- else if (codepoint <= 0x10ffff) {
- emit(0xf0 | (codepoint >> 18));
- emit(0x80 | ((codepoint >> 12) & 0x3f));
- emit(0x80 | ((codepoint >> 6) & 0x3f));
- emit(0x80 | (codepoint & 0x3f));
- return;
- }
- throw new Error(`Unrecognized Unicode codepoint: ${codepoint.toString(16)}`);
-}
-/**
- * Converts a JavaScript string to a sequence of UTF-8 bytes.
- *
- * @param str The string to convert to UTF-8.
- * @param emit Function which will be called for each UTF-8 byte of the string.
- */
-function stringToUTF8(str, emit) {
- for (let i = 0; i < str.length; i += 1) {
- let codepoint = str.charCodeAt(i);
- if (codepoint > 0xd7ff && codepoint <= 0xdbff) {
- // most UTF-16 codepoints are Unicode codepoints, except values in this
- // range where the next UTF-16 codepoint needs to be combined with the
- // current one to get the Unicode codepoint
- const highSurrogate = ((codepoint - 0xd800) * 0x400) & 0xffff;
- const lowSurrogate = (str.charCodeAt(i + 1) - 0xdc00) & 0xffff;
- codepoint = (lowSurrogate | highSurrogate) + 0x10000;
- i += 1;
- }
- codepointToUTF8(codepoint, emit);
- }
-}
-/**
- * Converts a UTF-8 byte to a Unicode codepoint.
- *
- * @param byte The UTF-8 byte next in the sequence.
- * @param state The shared state between consecutive UTF-8 bytes in the
- * sequence, an object with the shape `{ utf8seq: 0, codepoint: 0 }`.
- * @param emit Function which will be called for each codepoint.
- */
-function stringFromUTF8(byte, state, emit) {
- if (state.utf8seq === 0) {
- if (byte <= 0x7f) {
- emit(byte);
- return;
- }
- // count the number of 1 leading bits until you reach 0
- for (let leadingBit = 1; leadingBit < 6; leadingBit += 1) {
- if (((byte >> (7 - leadingBit)) & 1) === 0) {
- state.utf8seq = leadingBit;
- break;
- }
- }
- if (state.utf8seq === 2) {
- state.codepoint = byte & 31;
- }
- else if (state.utf8seq === 3) {
- state.codepoint = byte & 15;
- }
- else if (state.utf8seq === 4) {
- state.codepoint = byte & 7;
- }
- else {
- throw new Error('Invalid UTF-8 sequence');
- }
- state.utf8seq -= 1;
- }
- else if (state.utf8seq > 0) {
- if (byte <= 0x7f) {
- throw new Error('Invalid UTF-8 sequence');
- }
- state.codepoint = (state.codepoint << 6) | (byte & 63);
- state.utf8seq -= 1;
- if (state.utf8seq === 0) {
- emit(state.codepoint);
- }
- }
-}
-/**
- * Helper functions to convert different types of strings to Uint8Array
- */
-function base64UrlToUint8Array(str) {
- const result = [];
- const state = { queue: 0, queuedBits: 0 };
- const onByte = (byte) => {
- result.push(byte);
- };
- for (let i = 0; i < str.length; i += 1) {
- byteFromBase64URL(str.charCodeAt(i), state, onByte);
- }
- return new Uint8Array(result);
-}
-function stringToUint8Array(str) {
- const result = [];
- stringToUTF8(str, (byte) => result.push(byte));
- return new Uint8Array(result);
-}
-function bytesToBase64URL(bytes) {
- const result = [];
- const state = { queue: 0, queuedBits: 0 };
- const onChar = (char) => {
- result.push(char);
- };
- bytes.forEach((byte) => byteToBase64URL(byte, state, onChar));
- // always call with `null` after processing all bytes
- byteToBase64URL(null, state, onChar);
- return result.join('');
-}
-//# sourceMappingURL=base64url.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/base64url.js.map b/node_modules/@supabase/auth-js/dist/main/lib/base64url.js.map
deleted file mode 100644
index db9998e..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/base64url.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"base64url.js","sourceRoot":"","sources":["../../../src/lib/base64url.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AA6CH,0CAwBC;AASD,8CAsBC;AASD,8CAgBC;AAQD,kDAuBC;AAQD,0CAsBC;AAQD,oCAgBC;AAU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C9B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,CAAC,CAAA;IAED,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAA;IAE7D,qDAAqD;IACrD,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IAEpC,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxB,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts
deleted file mode 100644
index 604f8d0..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/** Current session will be checked for refresh at this interval. */
-export declare const AUTO_REFRESH_TICK_DURATION_MS: number;
-/**
- * A token refresh will be attempted this many ticks before the current session expires. */
-export declare const AUTO_REFRESH_TICK_THRESHOLD = 3;
-export declare const EXPIRY_MARGIN_MS: number;
-export declare const GOTRUE_URL = "http://localhost:9999";
-export declare const STORAGE_KEY = "supabase.auth.token";
-export declare const AUDIENCE = "";
-export declare const DEFAULT_HEADERS: {
- 'X-Client-Info': string;
-};
-export declare const NETWORK_FAILURE: {
- MAX_RETRIES: number;
- RETRY_INTERVAL: number;
-};
-export declare const API_VERSION_HEADER_NAME = "X-Supabase-Api-Version";
-export declare const API_VERSIONS: {
- '2024-01-01': {
- timestamp: number;
- name: string;
- };
-};
-export declare const BASE64URL_REGEX: RegExp;
-export declare const JWKS_TTL: number;
-//# sourceMappingURL=constants.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts.map
deleted file mode 100644
index acb62eb..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,eAAO,MAAM,6BAA6B,QAAY,CAAA;AAEtD;2FAC2F;AAC3F,eAAO,MAAM,2BAA2B,IAAI,CAAA;AAK5C,eAAO,MAAM,gBAAgB,QAA8D,CAAA;AAE3F,eAAO,MAAM,UAAU,0BAA0B,CAAA;AACjD,eAAO,MAAM,WAAW,wBAAwB,CAAA;AAChD,eAAO,MAAM,QAAQ,KAAK,CAAA;AAC1B,eAAO,MAAM,eAAe;;CAA8C,CAAA;AAC1E,eAAO,MAAM,eAAe;;;CAG3B,CAAA;AAED,eAAO,MAAM,uBAAuB,2BAA2B,CAAA;AAC/D,eAAO,MAAM,YAAY;;;;;CAKxB,CAAA;AAED,eAAO,MAAM,eAAe,QAAyD,CAAA;AAErF,eAAO,MAAM,QAAQ,QAAiB,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/constants.js b/node_modules/@supabase/auth-js/dist/main/lib/constants.js
deleted file mode 100644
index 7ce758d..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/constants.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.JWKS_TTL = exports.BASE64URL_REGEX = exports.API_VERSIONS = exports.API_VERSION_HEADER_NAME = exports.NETWORK_FAILURE = exports.DEFAULT_HEADERS = exports.AUDIENCE = exports.STORAGE_KEY = exports.GOTRUE_URL = exports.EXPIRY_MARGIN_MS = exports.AUTO_REFRESH_TICK_THRESHOLD = exports.AUTO_REFRESH_TICK_DURATION_MS = void 0;
-const version_1 = require("./version");
-/** Current session will be checked for refresh at this interval. */
-exports.AUTO_REFRESH_TICK_DURATION_MS = 30 * 1000;
-/**
- * A token refresh will be attempted this many ticks before the current session expires. */
-exports.AUTO_REFRESH_TICK_THRESHOLD = 3;
-/*
- * Earliest time before an access token expires that the session should be refreshed.
- */
-exports.EXPIRY_MARGIN_MS = exports.AUTO_REFRESH_TICK_THRESHOLD * exports.AUTO_REFRESH_TICK_DURATION_MS;
-exports.GOTRUE_URL = 'http://localhost:9999';
-exports.STORAGE_KEY = 'supabase.auth.token';
-exports.AUDIENCE = '';
-exports.DEFAULT_HEADERS = { 'X-Client-Info': `gotrue-js/${version_1.version}` };
-exports.NETWORK_FAILURE = {
- MAX_RETRIES: 10,
- RETRY_INTERVAL: 2, // in deciseconds
-};
-exports.API_VERSION_HEADER_NAME = 'X-Supabase-Api-Version';
-exports.API_VERSIONS = {
- '2024-01-01': {
- timestamp: Date.parse('2024-01-01T00:00:00.0Z'),
- name: '2024-01-01',
- },
-};
-exports.BASE64URL_REGEX = /^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i;
-exports.JWKS_TTL = 10 * 60 * 1000; // 10 minutes
-//# sourceMappingURL=constants.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/constants.js.map b/node_modules/@supabase/auth-js/dist/main/lib/constants.js.map
deleted file mode 100644
index 68ebf55..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/constants.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAEnC,oEAAoE;AACvD,QAAA,6BAA6B,GAAG,EAAE,GAAG,IAAI,CAAA;AAEtD;2FAC2F;AAC9E,QAAA,2BAA2B,GAAG,CAAC,CAAA;AAE5C;;GAEG;AACU,QAAA,gBAAgB,GAAG,mCAA2B,GAAG,qCAA6B,CAAA;AAE9E,QAAA,UAAU,GAAG,uBAAuB,CAAA;AACpC,QAAA,WAAW,GAAG,qBAAqB,CAAA;AACnC,QAAA,QAAQ,GAAG,EAAE,CAAA;AACb,QAAA,eAAe,GAAG,EAAE,eAAe,EAAE,aAAa,iBAAO,EAAE,EAAE,CAAA;AAC7D,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE,EAAE;IACf,cAAc,EAAE,CAAC,EAAE,iBAAiB;CACrC,CAAA;AAEY,QAAA,uBAAuB,GAAG,wBAAwB,CAAA;AAClD,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE;QACZ,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC;QAC/C,IAAI,EAAE,YAAY;KACnB;CACF,CAAA;AAEY,QAAA,eAAe,GAAG,sDAAsD,CAAA;AAExE,QAAA,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA,CAAC,aAAa"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts
deleted file mode 100644
index 668ad5b..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Known error codes. Note that the server may also return other error codes
- * not included in this list (if the SDK is older than the version
- * on the server).
- */
-export type ErrorCode = 'unexpected_failure' | 'validation_failed' | 'bad_json' | 'email_exists' | 'phone_exists' | 'bad_jwt' | 'not_admin' | 'no_authorization' | 'user_not_found' | 'session_not_found' | 'session_expired' | 'refresh_token_not_found' | 'refresh_token_already_used' | 'flow_state_not_found' | 'flow_state_expired' | 'signup_disabled' | 'user_banned' | 'provider_email_needs_verification' | 'invite_not_found' | 'bad_oauth_state' | 'bad_oauth_callback' | 'oauth_provider_not_supported' | 'unexpected_audience' | 'single_identity_not_deletable' | 'email_conflict_identity_not_deletable' | 'identity_already_exists' | 'email_provider_disabled' | 'phone_provider_disabled' | 'too_many_enrolled_mfa_factors' | 'mfa_factor_name_conflict' | 'mfa_factor_not_found' | 'mfa_ip_address_mismatch' | 'mfa_challenge_expired' | 'mfa_verification_failed' | 'mfa_verification_rejected' | 'insufficient_aal' | 'captcha_failed' | 'saml_provider_disabled' | 'manual_linking_disabled' | 'sms_send_failed' | 'email_not_confirmed' | 'phone_not_confirmed' | 'reauth_nonce_missing' | 'saml_relay_state_not_found' | 'saml_relay_state_expired' | 'saml_idp_not_found' | 'saml_assertion_no_user_id' | 'saml_assertion_no_email' | 'user_already_exists' | 'sso_provider_not_found' | 'saml_metadata_fetch_failed' | 'saml_idp_already_exists' | 'sso_domain_already_exists' | 'saml_entity_id_mismatch' | 'conflict' | 'provider_disabled' | 'user_sso_managed' | 'reauthentication_needed' | 'same_password' | 'reauthentication_not_valid' | 'otp_expired' | 'otp_disabled' | 'identity_not_found' | 'weak_password' | 'over_request_rate_limit' | 'over_email_send_rate_limit' | 'over_sms_send_rate_limit' | 'bad_code_verifier' | 'anonymous_provider_disabled' | 'hook_timeout' | 'hook_timeout_after_retry' | 'hook_payload_over_size_limit' | 'hook_payload_invalid_content_type' | 'request_timeout' | 'mfa_phone_enroll_not_enabled' | 'mfa_phone_verify_not_enabled' | 'mfa_totp_enroll_not_enabled' | 'mfa_totp_verify_not_enabled' | 'mfa_webauthn_enroll_not_enabled' | 'mfa_webauthn_verify_not_enabled' | 'mfa_verified_factor_exists' | 'invalid_credentials' | 'email_address_not_authorized' | 'email_address_invalid';
-//# sourceMappingURL=error-codes.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts.map
deleted file mode 100644
index cc88970..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../src/lib/error-codes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,cAAc,GACd,cAAc,GACd,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,yBAAyB,GACzB,4BAA4B,GAC5B,sBAAsB,GACtB,oBAAoB,GACpB,iBAAiB,GACjB,aAAa,GACb,mCAAmC,GACnC,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,8BAA8B,GAC9B,qBAAqB,GACrB,+BAA+B,GAC/B,uCAAuC,GACvC,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,GACzB,+BAA+B,GAC/B,0BAA0B,GAC1B,sBAAsB,GACtB,yBAAyB,GACzB,uBAAuB,GACvB,yBAAyB,GACzB,2BAA2B,GAC3B,kBAAkB,GAClB,gBAAgB,GAChB,wBAAwB,GACxB,yBAAyB,GACzB,iBAAiB,GACjB,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,4BAA4B,GAC5B,0BAA0B,GAC1B,oBAAoB,GACpB,2BAA2B,GAC3B,yBAAyB,GACzB,qBAAqB,GACrB,wBAAwB,GACxB,4BAA4B,GAC5B,yBAAyB,GACzB,2BAA2B,GAC3B,yBAAyB,GACzB,UAAU,GACV,mBAAmB,GACnB,kBAAkB,GAClB,yBAAyB,GACzB,eAAe,GACf,4BAA4B,GAC5B,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,eAAe,GACf,yBAAyB,GACzB,4BAA4B,GAC5B,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,cAAc,GACd,0BAA0B,GAC1B,8BAA8B,GAC9B,mCAAmC,GACnC,iBAAiB,GACjB,8BAA8B,GAC9B,8BAA8B,GAC9B,6BAA6B,GAC7B,6BAA6B,GAC7B,iCAAiC,GACjC,iCAAiC,GACjC,4BAA4B,GAC5B,qBAAqB,GACrB,8BAA8B,GAC9B,uBAAuB,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js b/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js
deleted file mode 100644
index afa679a..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=error-codes.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js.map b/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js.map
deleted file mode 100644
index a68e8e3..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../src/lib/error-codes.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts
deleted file mode 100644
index f81f1e7..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts
+++ /dev/null
@@ -1,258 +0,0 @@
-import { WeakPasswordReasons } from './types';
-import { ErrorCode } from './error-codes';
-/**
- * Base error thrown by Supabase Auth helpers.
- *
- * @example
- * ```ts
- * import { AuthError } from '@supabase/auth-js'
- *
- * throw new AuthError('Unexpected auth error', 500, 'unexpected')
- * ```
- */
-export declare class AuthError extends Error {
- /**
- * Error code associated with the error. Most errors coming from
- * HTTP responses will have a code, though some errors that occur
- * before a response is received will not have one present. In that
- * case {@link #status} will also be undefined.
- */
- code: ErrorCode | (string & {}) | undefined;
- /** HTTP status code that caused the error. */
- status: number | undefined;
- protected __isAuthError: boolean;
- constructor(message: string, status?: number, code?: string);
- toJSON(): {
- name: string;
- message: string;
- status: number | undefined;
- code: ErrorCode | (string & {}) | undefined;
- };
-}
-export declare function isAuthError(error: unknown): error is AuthError;
-/**
- * Error returned directly from the GoTrue REST API.
- *
- * @example
- * ```ts
- * import { AuthApiError } from '@supabase/auth-js'
- *
- * throw new AuthApiError('Invalid credentials', 400, 'invalid_credentials')
- * ```
- */
-export declare class AuthApiError extends AuthError {
- status: number;
- constructor(message: string, status: number, code: string | undefined);
-}
-export declare function isAuthApiError(error: unknown): error is AuthApiError;
-/**
- * Wraps non-standard errors so callers can inspect the root cause.
- *
- * @example
- * ```ts
- * import { AuthUnknownError } from '@supabase/auth-js'
- *
- * try {
- * await someAuthCall()
- * } catch (err) {
- * throw new AuthUnknownError('Auth failed', err)
- * }
- * ```
- */
-export declare class AuthUnknownError extends AuthError {
- originalError: unknown;
- constructor(message: string, originalError: unknown);
-}
-/**
- * Flexible error class used to create named auth errors at runtime.
- *
- * @example
- * ```ts
- * import { CustomAuthError } from '@supabase/auth-js'
- *
- * throw new CustomAuthError('My custom auth error', 'MyAuthError', 400, 'custom_code')
- * ```
- */
-export declare class CustomAuthError extends AuthError {
- name: string;
- status: number;
- constructor(message: string, name: string, status: number, code: string | undefined);
-}
-/**
- * Error thrown when an operation requires a session but none is present.
- *
- * @example
- * ```ts
- * import { AuthSessionMissingError } from '@supabase/auth-js'
- *
- * throw new AuthSessionMissingError()
- * ```
- */
-export declare class AuthSessionMissingError extends CustomAuthError {
- constructor();
-}
-export declare function isAuthSessionMissingError(error: any): error is AuthSessionMissingError;
-/**
- * Error thrown when the token response is malformed.
- *
- * @example
- * ```ts
- * import { AuthInvalidTokenResponseError } from '@supabase/auth-js'
- *
- * throw new AuthInvalidTokenResponseError()
- * ```
- */
-export declare class AuthInvalidTokenResponseError extends CustomAuthError {
- constructor();
-}
-/**
- * Error thrown when email/password credentials are invalid.
- *
- * @example
- * ```ts
- * import { AuthInvalidCredentialsError } from '@supabase/auth-js'
- *
- * throw new AuthInvalidCredentialsError('Email or password is incorrect')
- * ```
- */
-export declare class AuthInvalidCredentialsError extends CustomAuthError {
- constructor(message: string);
-}
-/**
- * Error thrown when implicit grant redirects contain an error.
- *
- * @example
- * ```ts
- * import { AuthImplicitGrantRedirectError } from '@supabase/auth-js'
- *
- * throw new AuthImplicitGrantRedirectError('OAuth redirect failed', {
- * error: 'access_denied',
- * code: 'oauth_error',
- * })
- * ```
- */
-export declare class AuthImplicitGrantRedirectError extends CustomAuthError {
- details: {
- error: string;
- code: string;
- } | null;
- constructor(message: string, details?: {
- error: string;
- code: string;
- } | null);
- toJSON(): {
- name: string;
- message: string;
- status: number | undefined;
- code: ErrorCode | (string & {}) | undefined;
- details: {
- error: string;
- code: string;
- } | null;
- };
-}
-export declare function isAuthImplicitGrantRedirectError(error: any): error is AuthImplicitGrantRedirectError;
-/**
- * Error thrown during PKCE code exchanges.
- *
- * @example
- * ```ts
- * import { AuthPKCEGrantCodeExchangeError } from '@supabase/auth-js'
- *
- * throw new AuthPKCEGrantCodeExchangeError('PKCE exchange failed')
- * ```
- */
-export declare class AuthPKCEGrantCodeExchangeError extends CustomAuthError {
- details: {
- error: string;
- code: string;
- } | null;
- constructor(message: string, details?: {
- error: string;
- code: string;
- } | null);
- toJSON(): {
- name: string;
- message: string;
- status: number | undefined;
- code: ErrorCode | (string & {}) | undefined;
- details: {
- error: string;
- code: string;
- } | null;
- };
-}
-/**
- * Error thrown when the PKCE code verifier is not found in storage.
- * This typically happens when the auth flow was initiated in a different
- * browser, device, or the storage was cleared.
- *
- * @example
- * ```ts
- * import { AuthPKCECodeVerifierMissingError } from '@supabase/auth-js'
- *
- * throw new AuthPKCECodeVerifierMissingError()
- * ```
- */
-export declare class AuthPKCECodeVerifierMissingError extends CustomAuthError {
- constructor();
-}
-export declare function isAuthPKCECodeVerifierMissingError(error: unknown): error is AuthPKCECodeVerifierMissingError;
-/**
- * Error thrown when a transient fetch issue occurs.
- *
- * @example
- * ```ts
- * import { AuthRetryableFetchError } from '@supabase/auth-js'
- *
- * throw new AuthRetryableFetchError('Service temporarily unavailable', 503)
- * ```
- */
-export declare class AuthRetryableFetchError extends CustomAuthError {
- constructor(message: string, status: number);
-}
-export declare function isAuthRetryableFetchError(error: unknown): error is AuthRetryableFetchError;
-/**
- * This error is thrown on certain methods when the password used is deemed
- * weak. Inspect the reasons to identify what password strength rules are
- * inadequate.
- */
-/**
- * Error thrown when a supplied password is considered weak.
- *
- * @example
- * ```ts
- * import { AuthWeakPasswordError } from '@supabase/auth-js'
- *
- * throw new AuthWeakPasswordError('Password too short', 400, ['min_length'])
- * ```
- */
-export declare class AuthWeakPasswordError extends CustomAuthError {
- /**
- * Reasons why the password is deemed weak.
- */
- reasons: WeakPasswordReasons[];
- constructor(message: string, status: number, reasons: WeakPasswordReasons[]);
- toJSON(): {
- name: string;
- message: string;
- status: number | undefined;
- code: ErrorCode | (string & {}) | undefined;
- reasons: WeakPasswordReasons[];
- };
-}
-export declare function isAuthWeakPasswordError(error: unknown): error is AuthWeakPasswordError;
-/**
- * Error thrown when a JWT cannot be verified or parsed.
- *
- * @example
- * ```ts
- * import { AuthInvalidJwtError } from '@supabase/auth-js'
- *
- * throw new AuthInvalidJwtError('Token signature is invalid')
- * ```
- */
-export declare class AuthInvalidJwtError extends CustomAuthError {
- constructor(message: string);
-}
-//# sourceMappingURL=errors.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts.map
deleted file mode 100644
index 5196bd2..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC;;;;;;;;;GASG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC;;;;;OAKG;IACH,IAAI,EAAE,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,CAAA;IAE3C,8CAA8C;IAC9C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAE1B,SAAS,CAAC,aAAa,UAAO;gBAElB,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM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MF;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,gCAAiC,SAAQ,eAAe;;CAYpE;AAED,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,gCAAgC,CAE3C;AAED;;;;;;;;;GASG;AACH,qBAAa,uBAAwB,SAAQ,eAAe;gBAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAG5C;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,uBAAuB,CAE1F;AAED;;;;GAIG;AACH;;;;;;;;;GASG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IACxD;;OAEG;IACH,OAAO,EAAE,mBAAmB,EAAE,CAAA;gBAElB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE;IAM3E,MAAM,IAAI;QACR,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;QAC1B,IAAI,EAAE,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,CAAA;QAC3C,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAC/B;CAMF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAEtF;AAED;;;;;;;;;GASG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;gBAC1C,OAAO,EAAE,MAAM;CAG5B"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/errors.js b/node_modules/@supabase/auth-js/dist/main/lib/errors.js
deleted file mode 100644
index 93b99c4..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/errors.js
+++ /dev/null
@@ -1,290 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.AuthInvalidJwtError = exports.AuthWeakPasswordError = exports.AuthRetryableFetchError = exports.AuthPKCECodeVerifierMissingError = exports.AuthPKCEGrantCodeExchangeError = exports.AuthImplicitGrantRedirectError = exports.AuthInvalidCredentialsError = exports.AuthInvalidTokenResponseError = exports.AuthSessionMissingError = exports.CustomAuthError = exports.AuthUnknownError = exports.AuthApiError = exports.AuthError = void 0;
-exports.isAuthError = isAuthError;
-exports.isAuthApiError = isAuthApiError;
-exports.isAuthSessionMissingError = isAuthSessionMissingError;
-exports.isAuthImplicitGrantRedirectError = isAuthImplicitGrantRedirectError;
-exports.isAuthPKCECodeVerifierMissingError = isAuthPKCECodeVerifierMissingError;
-exports.isAuthRetryableFetchError = isAuthRetryableFetchError;
-exports.isAuthWeakPasswordError = isAuthWeakPasswordError;
-/**
- * Base error thrown by Supabase Auth helpers.
- *
- * @example
- * ```ts
- * import { AuthError } from '@supabase/auth-js'
- *
- * throw new AuthError('Unexpected auth error', 500, 'unexpected')
- * ```
- */
-class AuthError extends Error {
- constructor(message, status, code) {
- super(message);
- this.__isAuthError = true;
- this.name = 'AuthError';
- this.status = status;
- this.code = code;
- }
- toJSON() {
- return {
- name: this.name,
- message: this.message,
- status: this.status,
- code: this.code,
- };
- }
-}
-exports.AuthError = AuthError;
-function isAuthError(error) {
- return typeof error === 'object' && error !== null && '__isAuthError' in error;
-}
-/**
- * Error returned directly from the GoTrue REST API.
- *
- * @example
- * ```ts
- * import { AuthApiError } from '@supabase/auth-js'
- *
- * throw new AuthApiError('Invalid credentials', 400, 'invalid_credentials')
- * ```
- */
-class AuthApiError extends AuthError {
- constructor(message, status, code) {
- super(message, status, code);
- this.name = 'AuthApiError';
- this.status = status;
- this.code = code;
- }
-}
-exports.AuthApiError = AuthApiError;
-function isAuthApiError(error) {
- return isAuthError(error) && error.name === 'AuthApiError';
-}
-/**
- * Wraps non-standard errors so callers can inspect the root cause.
- *
- * @example
- * ```ts
- * import { AuthUnknownError } from '@supabase/auth-js'
- *
- * try {
- * await someAuthCall()
- * } catch (err) {
- * throw new AuthUnknownError('Auth failed', err)
- * }
- * ```
- */
-class AuthUnknownError extends AuthError {
- constructor(message, originalError) {
- super(message);
- this.name = 'AuthUnknownError';
- this.originalError = originalError;
- }
-}
-exports.AuthUnknownError = AuthUnknownError;
-/**
- * Flexible error class used to create named auth errors at runtime.
- *
- * @example
- * ```ts
- * import { CustomAuthError } from '@supabase/auth-js'
- *
- * throw new CustomAuthError('My custom auth error', 'MyAuthError', 400, 'custom_code')
- * ```
- */
-class CustomAuthError extends AuthError {
- constructor(message, name, status, code) {
- super(message, status, code);
- this.name = name;
- this.status = status;
- }
-}
-exports.CustomAuthError = CustomAuthError;
-/**
- * Error thrown when an operation requires a session but none is present.
- *
- * @example
- * ```ts
- * import { AuthSessionMissingError } from '@supabase/auth-js'
- *
- * throw new AuthSessionMissingError()
- * ```
- */
-class AuthSessionMissingError extends CustomAuthError {
- constructor() {
- super('Auth session missing!', 'AuthSessionMissingError', 400, undefined);
- }
-}
-exports.AuthSessionMissingError = AuthSessionMissingError;
-function isAuthSessionMissingError(error) {
- return isAuthError(error) && error.name === 'AuthSessionMissingError';
-}
-/**
- * Error thrown when the token response is malformed.
- *
- * @example
- * ```ts
- * import { AuthInvalidTokenResponseError } from '@supabase/auth-js'
- *
- * throw new AuthInvalidTokenResponseError()
- * ```
- */
-class AuthInvalidTokenResponseError extends CustomAuthError {
- constructor() {
- super('Auth session or user missing', 'AuthInvalidTokenResponseError', 500, undefined);
- }
-}
-exports.AuthInvalidTokenResponseError = AuthInvalidTokenResponseError;
-/**
- * Error thrown when email/password credentials are invalid.
- *
- * @example
- * ```ts
- * import { AuthInvalidCredentialsError } from '@supabase/auth-js'
- *
- * throw new AuthInvalidCredentialsError('Email or password is incorrect')
- * ```
- */
-class AuthInvalidCredentialsError extends CustomAuthError {
- constructor(message) {
- super(message, 'AuthInvalidCredentialsError', 400, undefined);
- }
-}
-exports.AuthInvalidCredentialsError = AuthInvalidCredentialsError;
-/**
- * Error thrown when implicit grant redirects contain an error.
- *
- * @example
- * ```ts
- * import { AuthImplicitGrantRedirectError } from '@supabase/auth-js'
- *
- * throw new AuthImplicitGrantRedirectError('OAuth redirect failed', {
- * error: 'access_denied',
- * code: 'oauth_error',
- * })
- * ```
- */
-class AuthImplicitGrantRedirectError extends CustomAuthError {
- constructor(message, details = null) {
- super(message, 'AuthImplicitGrantRedirectError', 500, undefined);
- this.details = null;
- this.details = details;
- }
- toJSON() {
- return Object.assign(Object.assign({}, super.toJSON()), { details: this.details });
- }
-}
-exports.AuthImplicitGrantRedirectError = AuthImplicitGrantRedirectError;
-function isAuthImplicitGrantRedirectError(error) {
- return isAuthError(error) && error.name === 'AuthImplicitGrantRedirectError';
-}
-/**
- * Error thrown during PKCE code exchanges.
- *
- * @example
- * ```ts
- * import { AuthPKCEGrantCodeExchangeError } from '@supabase/auth-js'
- *
- * throw new AuthPKCEGrantCodeExchangeError('PKCE exchange failed')
- * ```
- */
-class AuthPKCEGrantCodeExchangeError extends CustomAuthError {
- constructor(message, details = null) {
- super(message, 'AuthPKCEGrantCodeExchangeError', 500, undefined);
- this.details = null;
- this.details = details;
- }
- toJSON() {
- return Object.assign(Object.assign({}, super.toJSON()), { details: this.details });
- }
-}
-exports.AuthPKCEGrantCodeExchangeError = AuthPKCEGrantCodeExchangeError;
-/**
- * Error thrown when the PKCE code verifier is not found in storage.
- * This typically happens when the auth flow was initiated in a different
- * browser, device, or the storage was cleared.
- *
- * @example
- * ```ts
- * import { AuthPKCECodeVerifierMissingError } from '@supabase/auth-js'
- *
- * throw new AuthPKCECodeVerifierMissingError()
- * ```
- */
-class AuthPKCECodeVerifierMissingError extends CustomAuthError {
- constructor() {
- super('PKCE code verifier not found in storage. ' +
- 'This can happen if the auth flow was initiated in a different browser or device, ' +
- 'or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), ' +
- 'use @supabase/ssr on both the server and client to store the code verifier in cookies.', 'AuthPKCECodeVerifierMissingError', 400, 'pkce_code_verifier_not_found');
- }
-}
-exports.AuthPKCECodeVerifierMissingError = AuthPKCECodeVerifierMissingError;
-function isAuthPKCECodeVerifierMissingError(error) {
- return isAuthError(error) && error.name === 'AuthPKCECodeVerifierMissingError';
-}
-/**
- * Error thrown when a transient fetch issue occurs.
- *
- * @example
- * ```ts
- * import { AuthRetryableFetchError } from '@supabase/auth-js'
- *
- * throw new AuthRetryableFetchError('Service temporarily unavailable', 503)
- * ```
- */
-class AuthRetryableFetchError extends CustomAuthError {
- constructor(message, status) {
- super(message, 'AuthRetryableFetchError', status, undefined);
- }
-}
-exports.AuthRetryableFetchError = AuthRetryableFetchError;
-function isAuthRetryableFetchError(error) {
- return isAuthError(error) && error.name === 'AuthRetryableFetchError';
-}
-/**
- * This error is thrown on certain methods when the password used is deemed
- * weak. Inspect the reasons to identify what password strength rules are
- * inadequate.
- */
-/**
- * Error thrown when a supplied password is considered weak.
- *
- * @example
- * ```ts
- * import { AuthWeakPasswordError } from '@supabase/auth-js'
- *
- * throw new AuthWeakPasswordError('Password too short', 400, ['min_length'])
- * ```
- */
-class AuthWeakPasswordError extends CustomAuthError {
- constructor(message, status, reasons) {
- super(message, 'AuthWeakPasswordError', status, 'weak_password');
- this.reasons = reasons;
- }
- toJSON() {
- return Object.assign(Object.assign({}, super.toJSON()), { reasons: this.reasons });
- }
-}
-exports.AuthWeakPasswordError = AuthWeakPasswordError;
-function isAuthWeakPasswordError(error) {
- return isAuthError(error) && error.name === 'AuthWeakPasswordError';
-}
-/**
- * Error thrown when a JWT cannot be verified or parsed.
- *
- * @example
- * ```ts
- * import { AuthInvalidJwtError } from '@supabase/auth-js'
- *
- * throw new AuthInvalidJwtError('Token signature is invalid')
- * ```
- */
-class AuthInvalidJwtError extends CustomAuthError {
- constructor(message) {
- super(message, 'AuthInvalidJwtError', 400, 'invalid_jwt');
- }
-}
-exports.AuthInvalidJwtError = AuthInvalidJwtError;
-//# sourceMappingURL=errors.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/errors.js.map b/node_modules/@supabase/auth-js/dist/main/lib/errors.js.map
deleted file mode 100644
index 6a0e3cc..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/errors.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":";;;AAiDA,kCAEC;AAuBD,wCAEC;AA+DD,8DAEC;AAoED,4EAIC;AA4DD,gFAIC;AAkBD,8DAEC;AA2CD,0DAEC;AAnVD;;;;;;;;;GASG;AACH,MAAa,SAAU,SAAQ,KAAK;IAclC,YAAY,OAAe,EAAE,MAAe,EAAE,IAAa;QACzD,KAAK,CAAC,OAAO,CAAC,CAAA;QAHN,kBAAa,GAAG,IAAI,CAAA;QAI5B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAA;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAED,MAAM;QAMJ,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAA;IACH,CAAC;CACF;AAlCD,8BAkCC;AAED,SAAgB,WAAW,CAAC,KAAc;IACxC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,eAAe,IAAI,KAAK,CAAA;AAChF,CAAC;AAED;;;;;;;;;GASG;AACH,MAAa,YAAa,SAAQ,SAAS;IAGzC,YAAY,OAAe,EAAE,MAAc,EAAE,IAAwB;QACnE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,cAAc,CAAA;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;CACF;AATD,oCASC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AK,kCAAkC,CAAA;AAChF,CAAC;AAED;;;;;;;;;GASG;AACH,MAAa,uBAAwB,SAAQ,eAAe;IAC1D,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,EAAE,yBAAyB,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA;IAC9D,CAAC;CACF;AAJD,0DAIC;AAED,SAAgB,yBAAyB,CAAC,KAAc;IACtD,OAAO,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,yBAAyB,CAAA;AACvE,CAAC;AAED;;;;GAIG;AACH;;;;;;;;;GASG;AACH,MAAa,qBAAsB,SAAQ,eAAe;IAMxD,YAAY,OAAe,EAAE,MAAc,EAAE,OAA8B;QACzE,KAAK,CAAC,OAAO,EAAE,uBAAuB,EAAE,MAAM,EAAE,eAAe,CAAC,CAAA;QAEhE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,MAAM;QAOJ,uCACK,KAAK,CAAC,MAAM,EAAE,KACjB,OAAO,EAAE,IAAI,CAAC,OAAO,IACtB;IACH,CAAC;CACF;AAxBD,sDAwBC;AAED,SAAgB,uBAAuB,CAAC,KAAc;IACpD,OAAO,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,uBAAuB,CAAA;AACrE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAa,mBAAoB,SAAQ,eAAe;IACtD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,EAAE,aAAa,CAAC,CAAA;IAC3D,CAAC;CACF;AAJD,kDAIC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts
deleted file mode 100644
index ff730d4..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import { AuthResponse, AuthResponsePassword, SSOResponse, GenerateLinkProperties, GenerateLinkResponse, User, UserResponse, WeakPassword } from './types';
-export type Fetch = typeof fetch;
-/** Raw session data from GoTrue server response. */
-interface GoTrueSessionData {
- access_token?: string;
- refresh_token?: string;
- expires_in?: number;
- expires_at?: number;
- user?: User;
- [key: string]: any;
-}
-/** Raw session data that includes weak password info (password sign-in endpoints). */
-interface GoTrueSessionPasswordData extends GoTrueSessionData {
- weak_password?: WeakPassword;
-}
-/** Raw user data — either `{ user: User }` or the User object itself. */
-interface GoTrueUserData {
- user?: User;
- [key: string]: any;
-}
-/** Raw generate-link data — link properties + User fields flattened into one object. */
-type GoTrueGenerateLinkData = GenerateLinkProperties & Record;
-export interface FetchOptions {
- headers?: {
- [key: string]: string;
- };
- noResolveJson?: boolean;
-}
-export interface FetchParameters {
- signal?: AbortSignal;
-}
-export type RequestMethodType = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
-export declare function handleError(error: unknown): Promise;
-interface GotrueRequestOptions extends FetchOptions {
- jwt?: string;
- redirectTo?: string;
- body?: object;
- query?: {
- [key: string]: string;
- };
- /**
- * Function that transforms api response from gotrue into a desirable / standardised format
- */
- xform?: (data: any) => any;
-}
-export declare function _request(fetcher: Fetch, method: RequestMethodType, url: string, options?: GotrueRequestOptions): Promise;
-export declare function _sessionResponse(data: GoTrueSessionData): AuthResponse;
-export declare function _sessionResponsePassword(data: GoTrueSessionPasswordData): AuthResponsePassword;
-export declare function _userResponse(data: GoTrueUserData): UserResponse;
-export declare function _ssoResponse(data: Record): SSOResponse;
-export declare function _generateLinkResponse(data: GoTrueGenerateLinkData): GenerateLinkResponse;
-export declare function _noResolveJsonResponse(data: Response): Response;
-export {};
-//# sourceMappingURL=fetch.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts.map
deleted file mode 100644
index e3ed511..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/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O,iBA+D/C;AAmBD,UAAU,oBAAqB,SAAQ,YAAY;IACjD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAA;CAC3B;AAED,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,iBAAiB,EACzB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,oBAAoB,gBAgC/B;AAwCD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,YAAY,CAYtE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,yBAAyB,GAAG,oBAAoB,CAiB9F;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,YAAY,CAGhE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,WAAW,CAEnE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,sBAAsB,GAAG,oBAAoB,CAmBxF;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAE/D"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/fetch.js b/node_modules/@supabase/auth-js/dist/main/lib/fetch.js
deleted file mode 100644
index b0f0733..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/fetch.js
+++ /dev/null
@@ -1,200 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.handleError = handleError;
-exports._request = _request;
-exports._sessionResponse = _sessionResponse;
-exports._sessionResponsePassword = _sessionResponsePassword;
-exports._userResponse = _userResponse;
-exports._ssoResponse = _ssoResponse;
-exports._generateLinkResponse = _generateLinkResponse;
-exports._noResolveJsonResponse = _noResolveJsonResponse;
-const tslib_1 = require("tslib");
-const constants_1 = require("./constants");
-const helpers_1 = require("./helpers");
-const errors_1 = require("./errors");
-const _getErrorMessage = (err) => {
- if (typeof err === 'object' && err !== null) {
- const e = err;
- if (typeof e.msg === 'string')
- return e.msg;
- if (typeof e.message === 'string')
- return e.message;
- if (typeof e.error_description === 'string')
- return e.error_description;
- if (typeof e.error === 'string')
- return e.error;
- }
- return JSON.stringify(err);
-};
-// 502, 503, 504: Standard server/gateway errors
-// 520-524, 530: Cloudflare-specific error codes (web server down, connection timed out, etc.)
-// These are infrastructure errors and should not cause session invalidation.
-const NETWORK_ERROR_CODES = [502, 503, 504, 520, 521, 522, 523, 524, 530];
-async function handleError(error) {
- var _a;
- if (!(0, helpers_1.looksLikeFetchResponse)(error)) {
- throw new errors_1.AuthRetryableFetchError(_getErrorMessage(error), 0);
- }
- if (NETWORK_ERROR_CODES.includes(error.status)) {
- // status in 500...599 range - server had an error, request might be retryed.
- throw new errors_1.AuthRetryableFetchError(_getErrorMessage(error), error.status);
- }
- let data;
- try {
- data = await error.json();
- }
- catch (e) {
- throw new errors_1.AuthUnknownError(_getErrorMessage(e), e);
- }
- let errorCode = undefined;
- const responseAPIVersion = (0, helpers_1.parseResponseAPIVersion)(error);
- if (responseAPIVersion &&
- responseAPIVersion.getTime() >= constants_1.API_VERSIONS['2024-01-01'].timestamp &&
- typeof data === 'object' &&
- data &&
- typeof data.code === 'string') {
- errorCode = data.code;
- }
- else if (typeof data === 'object' && data && typeof data.error_code === 'string') {
- errorCode = data.error_code;
- }
- if (!errorCode) {
- // Legacy support for weak password errors, when there were no error codes
- if (typeof data === 'object' &&
- data &&
- typeof data.weak_password === 'object' &&
- data.weak_password &&
- Array.isArray(data.weak_password.reasons) &&
- data.weak_password.reasons.length &&
- data.weak_password.reasons.reduce((a, i) => a && typeof i === 'string', true)) {
- throw new errors_1.AuthWeakPasswordError(_getErrorMessage(data), error.status, data.weak_password.reasons);
- }
- }
- else if (errorCode === 'weak_password') {
- throw new errors_1.AuthWeakPasswordError(_getErrorMessage(data), error.status, ((_a = data.weak_password) === null || _a === void 0 ? void 0 : _a.reasons) || []);
- }
- else if (errorCode === 'session_not_found') {
- // The `session_id` inside the JWT does not correspond to a row in the
- // `sessions` table. This usually means the user has signed out, has been
- // deleted, or their session has somehow been terminated.
- throw new errors_1.AuthSessionMissingError();
- }
- throw new errors_1.AuthApiError(_getErrorMessage(data), error.status || 500, errorCode);
-}
-const _getRequestParams = (method, options, parameters, body) => {
- const params = { method, headers: (options === null || options === void 0 ? void 0 : options.headers) || {} };
- if (method === 'GET') {
- return params;
- }
- params.headers = Object.assign({ 'Content-Type': 'application/json;charset=UTF-8' }, options === null || options === void 0 ? void 0 : options.headers);
- params.body = JSON.stringify(body);
- return Object.assign(Object.assign({}, params), parameters);
-};
-async function _request(fetcher, method, url, options) {
- var _a;
- const headers = Object.assign({}, options === null || options === void 0 ? void 0 : options.headers);
- if (!headers[constants_1.API_VERSION_HEADER_NAME]) {
- headers[constants_1.API_VERSION_HEADER_NAME] = constants_1.API_VERSIONS['2024-01-01'].name;
- }
- if (options === null || options === void 0 ? void 0 : options.jwt) {
- headers['Authorization'] = `Bearer ${options.jwt}`;
- }
- const qs = (_a = options === null || options === void 0 ? void 0 : options.query) !== null && _a !== void 0 ? _a : {};
- if (options === null || options === void 0 ? void 0 : options.redirectTo) {
- qs['redirect_to'] = options.redirectTo;
- }
- const queryString = Object.keys(qs).length ? '?' + new URLSearchParams(qs).toString() : '';
- const data = await _handleRequest(fetcher, method, url + queryString, {
- headers,
- noResolveJson: options === null || options === void 0 ? void 0 : options.noResolveJson,
- }, {}, options === null || options === void 0 ? void 0 : options.body);
- return (options === null || options === void 0 ? void 0 : options.xform) ? options === null || options === void 0 ? void 0 : options.xform(data) : { data: Object.assign({}, data), error: null };
-}
-async function _handleRequest(fetcher, method, url, options, parameters, body) {
- const requestParams = _getRequestParams(method, options, parameters, body);
- let result;
- try {
- result = await fetcher(url, Object.assign({}, requestParams));
- }
- catch (e) {
- console.error(e);
- // fetch failed, likely due to a network or CORS error
- throw new errors_1.AuthRetryableFetchError(_getErrorMessage(e), 0);
- }
- if (!result.ok) {
- await handleError(result);
- }
- if (options === null || options === void 0 ? void 0 : options.noResolveJson) {
- return result;
- }
- try {
- return await result.json();
- }
- catch (e) {
- await handleError(e);
- }
-}
-function _sessionResponse(data) {
- var _a;
- let session = null;
- if (hasSession(data)) {
- session = Object.assign({}, data);
- if (!data.expires_at) {
- session.expires_at = (0, helpers_1.expiresAt)(data.expires_in);
- }
- }
- const user = (_a = data.user) !== null && _a !== void 0 ? _a : data;
- return { data: { session, user }, error: null };
-}
-function _sessionResponsePassword(data) {
- const response = _sessionResponse(data);
- if (!response.error &&
- data.weak_password &&
- typeof data.weak_password === 'object' &&
- Array.isArray(data.weak_password.reasons) &&
- data.weak_password.reasons.length &&
- data.weak_password.message &&
- typeof data.weak_password.message === 'string' &&
- data.weak_password.reasons.reduce((a, i) => a && typeof i === 'string', true)) {
- response.data.weak_password = data.weak_password;
- }
- return response;
-}
-function _userResponse(data) {
- var _a;
- const user = (_a = data.user) !== null && _a !== void 0 ? _a : data;
- return { data: { user }, error: null };
-}
-function _ssoResponse(data) {
- return { data, error: null };
-}
-function _generateLinkResponse(data) {
- const { action_link, email_otp, hashed_token, redirect_to, verification_type } = data, rest = tslib_1.__rest(data, ["action_link", "email_otp", "hashed_token", "redirect_to", "verification_type"]);
- const properties = {
- action_link,
- email_otp,
- hashed_token,
- redirect_to,
- verification_type,
- };
- const user = Object.assign({}, rest);
- return {
- data: {
- properties,
- user,
- },
- error: null,
- };
-}
-function _noResolveJsonResponse(data) {
- return data;
-}
-/**
- * hasSession checks if the response object contains a valid session
- * @param data A response object
- * @returns true if a session is in the response
- */
-function hasSession(data) {
- return !!data.access_token && !!data.refresh_token && !!data.expires_in;
-}
-//# sourceMappingURL=fetch.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/fetch.js.map b/node_modules/@supabase/auth-js/dist/main/lib/fetch.js.map
deleted file mode 100644
index d024822..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/fetch.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../src/lib/fetch.ts"],"names":[],"mappings":";;AA4EA,kCA+DC;AA8BD,4BAoCC;AAwCD,4CAYC;AAED,4DAiBC;AAED,sCAGC;AAED,oCAEC;AAED,sDAmBC;AAED,wDAEC;;AAtTD,2CAAmE;AACnE,uCAAsF;AAYtF,qCAMiB;AAyCjB,MAAM,gBAAgB,GAAG,CAAC,GAAY,EAAU,EAAE;IAChD,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,MAAM,CAAC,GAAG,GAA8B,CAAA;QACxC,IAAI,OAAO,CAAC,CAAC,GAAG,KAAK,QAAQ;YAAE,OAAO,CAAC,CAAC,GAAG,CAAA;QAC3C,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,QAAQ;YAAE,OAAO,CAAC,CAAC,OAAO,CAAA;QACnD,IAAI,OAAO,CAAC,CAAC,iBAAiB,KAAK,QAAQ;YAAE,OAAO,CAAC,CAAC,iBAAiB,CAAA;QACvE,IAAI,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ;YAAE,OAAO,CAAC,CAAC,KAAK,CAAA;IACjD,CAAC;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AAC5B,CAAC,CAAA;AAED,gDAAgD;AAChD,8FAA8F;AAC9F,6EAA6E;AAC7E,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAElE,KAAK,UAAU,WAAW,CAAC,K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I,GAAS,MAAA,IAAI,CAAC,IAAI,mCAAK,IAAa,CAAA;IAC9C,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;AACxC,CAAC;AAED,SAAgB,YAAY,CAAC,IAAyB;IACpD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAiB,CAAA;AAC7C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAA4B;IAChE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,KAAc,IAAI,EAAb,IAAI,kBAAK,IAAI,EAAxF,gFAAiF,CAAO,CAAA;IAE9F,MAAM,UAAU,GAA2B;QACzC,WAAW;QACX,SAAS;QACT,YAAY;QACZ,WAAW;QACX,iBAAiB;KAClB,CAAA;IAED,MAAM,IAAI,GAAG,kBAAK,IAAI,CAAU,CAAA;IAChC,OAAO;QACL,IAAI,EAAE;YACJ,UAAU;YACV,IAAI;SACL;QACD,KAAK,EAAE,IAAI;KACZ,CAAA;AACH,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAc;IACnD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,IAAuB;IACzC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAA;AACzE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts
deleted file mode 100644
index 4aee972..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts
+++ /dev/null
@@ -1,94 +0,0 @@
-import { JwtHeader, JwtPayload, SupportedStorage, User } from './types';
-import { Uint8Array_ } from './webauthn.dom';
-export declare function expiresAt(expiresIn: number): number;
-/**
- * Generates a unique identifier for internal callback subscriptions.
- *
- * This function uses JavaScript Symbols to create guaranteed-unique identifiers
- * for auth state change callbacks. Symbols are ideal for this use case because:
- * - They are guaranteed unique by the JavaScript runtime
- * - They work in all environments (browser, SSR, Node.js)
- * - They avoid issues with Next.js 16 deterministic rendering requirements
- * - They are perfect for internal, non-serializable identifiers
- *
- * Note: This function is only used for internal subscription management,
- * not for security-critical operations like session tokens.
- */
-export declare function generateCallbackId(): symbol;
-export declare const isBrowser: () => boolean;
-/**
- * Checks whether localStorage is supported on this browser.
- */
-export declare const supportsLocalStorage: () => boolean;
-/**
- * Extracts parameters encoded in the URL both in the query and fragment.
- */
-export declare function parseParametersFromURL(href: string): {
- [parameter: string]: string;
-};
-type Fetch = typeof fetch;
-export declare const resolveFetch: (customFetch?: Fetch) => Fetch;
-export declare const looksLikeFetchResponse: (maybeResponse: unknown) => maybeResponse is Response;
-export declare const setItemAsync: (storage: SupportedStorage, key: string, data: any) => Promise;
-export declare const getItemAsync: (storage: SupportedStorage, key: string) => Promise;
-export declare const removeItemAsync: (storage: SupportedStorage, key: string) => Promise;
-/**
- * A deferred represents some asynchronous work that is not yet finished, which
- * may or may not culminate in a value.
- * Taken from: https://github.com/mike-north/types/blob/master/src/async.ts
- */
-export declare class Deferred {
- static promiseConstructor: PromiseConstructor;
- readonly promise: PromiseLike;
- readonly resolve: (value?: T | PromiseLike) => void;
- readonly reject: (reason?: any) => any;
- constructor();
-}
-export declare function decodeJWT(token: string): {
- header: JwtHeader;
- payload: JwtPayload;
- signature: Uint8Array_;
- raw: {
- header: string;
- payload: string;
- };
-};
-/**
- * Creates a promise that resolves to null after some time.
- */
-export declare function sleep(time: number): Promise;
-/**
- * Converts the provided async function into a retryable function. Each result
- * or thrown error is sent to the isRetryable function which should return true
- * if the function should run again.
- */
-export declare function retryable(fn: (attempt: number) => Promise, isRetryable: (attempt: number, error: any | null, result?: T) => boolean): Promise;
-export declare function generatePKCEVerifier(): string;
-export declare function generatePKCEChallenge(verifier: string): Promise;
-export declare function getCodeChallengeAndMethod(storage: SupportedStorage, storageKey: string, isPasswordRecovery?: boolean): Promise;
-export declare function parseResponseAPIVersion(response: Response): Date | null;
-export declare function validateExp(exp: number): void;
-export declare function getAlgorithm(alg: 'HS256' | 'RS256' | 'ES256' | (string & {})): RsaHashedImportParams | EcKeyImportParams;
-export declare function validateUUID(str: string): void;
-export declare function assertPasskeyExperimentalEnabled(experimental: {
- passkey?: boolean;
-}): void;
-export declare function userNotAvailableProxy(): User;
-/**
- * Creates a proxy around a user object that warns when properties are accessed on the server.
- * This is used to alert developers that using user data from getSession() on the server is insecure.
- *
- * @param user The actual user object to wrap
- * @param suppressWarningRef An object with a 'value' property that controls warning suppression
- * @returns A proxied user object that warns on property access
- */
-export declare function insecureUserWarningProxy(user: User, suppressWarningRef: {
- value: boolean;
-}): User;
-/**
- * Deep clones a JSON-serializable object using JSON.parse(JSON.stringify(obj)).
- * Note: Only works for JSON-safe data.
- */
-export declare function deepClone(obj: T): T;
-export {};
-//# sourceMappingURL=helpers.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts.map
deleted file mode 100644
index c969acb..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,UAG1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,eAAO,MAAM,SAAS,eAAyE,CAAA;AAO/F;;GAEG;AACH,eAAO,MAA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/auth-js/dist/main/lib/helpers.js
deleted file mode 100644
index 115925c..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/helpers.js
+++ /dev/null
@@ -1,401 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Deferred = exports.removeItemAsync = exports.getItemAsync = exports.setItemAsync = exports.looksLikeFetchResponse = exports.resolveFetch = exports.supportsLocalStorage = exports.isBrowser = void 0;
-exports.expiresAt = expiresAt;
-exports.generateCallbackId = generateCallbackId;
-exports.parseParametersFromURL = parseParametersFromURL;
-exports.decodeJWT = decodeJWT;
-exports.sleep = sleep;
-exports.retryable = retryable;
-exports.generatePKCEVerifier = generatePKCEVerifier;
-exports.generatePKCEChallenge = generatePKCEChallenge;
-exports.getCodeChallengeAndMethod = getCodeChallengeAndMethod;
-exports.parseResponseAPIVersion = parseResponseAPIVersion;
-exports.validateExp = validateExp;
-exports.getAlgorithm = getAlgorithm;
-exports.validateUUID = validateUUID;
-exports.assertPasskeyExperimentalEnabled = assertPasskeyExperimentalEnabled;
-exports.userNotAvailableProxy = userNotAvailableProxy;
-exports.insecureUserWarningProxy = insecureUserWarningProxy;
-exports.deepClone = deepClone;
-const constants_1 = require("./constants");
-const errors_1 = require("./errors");
-const base64url_1 = require("./base64url");
-function expiresAt(expiresIn) {
- const timeNow = Math.round(Date.now() / 1000);
- return timeNow + expiresIn;
-}
-/**
- * Generates a unique identifier for internal callback subscriptions.
- *
- * This function uses JavaScript Symbols to create guaranteed-unique identifiers
- * for auth state change callbacks. Symbols are ideal for this use case because:
- * - They are guaranteed unique by the JavaScript runtime
- * - They work in all environments (browser, SSR, Node.js)
- * - They avoid issues with Next.js 16 deterministic rendering requirements
- * - They are perfect for internal, non-serializable identifiers
- *
- * Note: This function is only used for internal subscription management,
- * not for security-critical operations like session tokens.
- */
-function generateCallbackId() {
- return Symbol('auth-callback');
-}
-const isBrowser = () => typeof window !== 'undefined' && typeof document !== 'undefined';
-exports.isBrowser = isBrowser;
-const localStorageWriteTests = {
- tested: false,
- writable: false,
-};
-/**
- * Checks whether localStorage is supported on this browser.
- */
-const supportsLocalStorage = () => {
- if (!(0, exports.isBrowser)()) {
- return false;
- }
- try {
- if (typeof globalThis.localStorage !== 'object') {
- return false;
- }
- }
- catch (e) {
- // DOM exception when accessing `localStorage`
- return false;
- }
- if (localStorageWriteTests.tested) {
- return localStorageWriteTests.writable;
- }
- const randomKey = `lswt-${Math.random()}${Math.random()}`;
- try {
- globalThis.localStorage.setItem(randomKey, randomKey);
- globalThis.localStorage.removeItem(randomKey);
- localStorageWriteTests.tested = true;
- localStorageWriteTests.writable = true;
- }
- catch (e) {
- // localStorage can't be written to
- // https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document
- localStorageWriteTests.tested = true;
- localStorageWriteTests.writable = false;
- }
- return localStorageWriteTests.writable;
-};
-exports.supportsLocalStorage = supportsLocalStorage;
-/**
- * Extracts parameters encoded in the URL both in the query and fragment.
- */
-function parseParametersFromURL(href) {
- const result = {};
- const url = new URL(href);
- if (url.hash && url.hash[0] === '#') {
- try {
- const hashSearchParams = new URLSearchParams(url.hash.substring(1));
- hashSearchParams.forEach((value, key) => {
- result[key] = value;
- });
- }
- catch (_e) {
- // hash is not a query string
- }
- }
- // search parameters take precedence over hash parameters
- url.searchParams.forEach((value, key) => {
- result[key] = value;
- });
- return result;
-}
-const resolveFetch = (customFetch) => {
- if (customFetch) {
- return (...args) => customFetch(...args);
- }
- return (...args) => fetch(...args);
-};
-exports.resolveFetch = resolveFetch;
-const looksLikeFetchResponse = (maybeResponse) => {
- return (typeof maybeResponse === 'object' &&
- maybeResponse !== null &&
- 'status' in maybeResponse &&
- 'ok' in maybeResponse &&
- 'json' in maybeResponse &&
- typeof maybeResponse.json === 'function');
-};
-exports.looksLikeFetchResponse = looksLikeFetchResponse;
-// Storage helpers
-const setItemAsync = async (storage, key, data) => {
- await storage.setItem(key, JSON.stringify(data));
-};
-exports.setItemAsync = setItemAsync;
-const getItemAsync = async (storage, key) => {
- const value = await storage.getItem(key);
- if (!value) {
- return null;
- }
- try {
- return JSON.parse(value);
- }
- catch (_a) {
- return value;
- }
-};
-exports.getItemAsync = getItemAsync;
-const removeItemAsync = async (storage, key) => {
- await storage.removeItem(key);
-};
-exports.removeItemAsync = removeItemAsync;
-/**
- * A deferred represents some asynchronous work that is not yet finished, which
- * may or may not culminate in a value.
- * Taken from: https://github.com/mike-north/types/blob/master/src/async.ts
- */
-class Deferred {
- constructor() {
- // eslint-disable-next-line @typescript-eslint/no-extra-semi
- ;
- this.promise = new Deferred.promiseConstructor((res, rej) => {
- // eslint-disable-next-line @typescript-eslint/no-extra-semi
- ;
- this.resolve = res;
- this.reject = rej;
- });
- }
-}
-exports.Deferred = Deferred;
-Deferred.promiseConstructor = Promise;
-function decodeJWT(token) {
- const parts = token.split('.');
- if (parts.length !== 3) {
- throw new errors_1.AuthInvalidJwtError('Invalid JWT structure');
- }
- // Regex checks for base64url format
- for (let i = 0; i < parts.length; i++) {
- if (!constants_1.BASE64URL_REGEX.test(parts[i])) {
- throw new errors_1.AuthInvalidJwtError('JWT not in base64url format');
- }
- }
- const data = {
- // using base64url lib
- header: JSON.parse((0, base64url_1.stringFromBase64URL)(parts[0])),
- payload: JSON.parse((0, base64url_1.stringFromBase64URL)(parts[1])),
- signature: (0, base64url_1.base64UrlToUint8Array)(parts[2]),
- raw: {
- header: parts[0],
- payload: parts[1],
- },
- };
- return data;
-}
-/**
- * Creates a promise that resolves to null after some time.
- */
-async function sleep(time) {
- return await new Promise((accept) => {
- setTimeout(() => accept(null), time);
- });
-}
-/**
- * Converts the provided async function into a retryable function. Each result
- * or thrown error is sent to the isRetryable function which should return true
- * if the function should run again.
- */
-function retryable(fn, isRetryable) {
- const promise = new Promise((accept, reject) => {
- // eslint-disable-next-line @typescript-eslint/no-extra-semi
- ;
- (async () => {
- for (let attempt = 0; attempt < Infinity; attempt++) {
- try {
- const result = await fn(attempt);
- if (!isRetryable(attempt, null, result)) {
- accept(result);
- return;
- }
- }
- catch (e) {
- if (!isRetryable(attempt, e)) {
- reject(e);
- return;
- }
- }
- }
- })();
- });
- return promise;
-}
-function dec2hex(dec) {
- return ('0' + dec.toString(16)).substr(-2);
-}
-// Functions below taken from: https://stackoverflow.com/questions/63309409/creating-a-code-verifier-and-challenge-for-pkce-auth-on-spotify-api-in-reactjs
-function generatePKCEVerifier() {
- const verifierLength = 56;
- const array = new Uint32Array(verifierLength);
- if (typeof crypto === 'undefined') {
- const charSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~';
- const charSetLen = charSet.length;
- let verifier = '';
- for (let i = 0; i < verifierLength; i++) {
- verifier += charSet.charAt(Math.floor(Math.random() * charSetLen));
- }
- return verifier;
- }
- crypto.getRandomValues(array);
- return Array.from(array, dec2hex).join('');
-}
-async function sha256(randomString) {
- const encoder = new TextEncoder();
- const encodedData = encoder.encode(randomString);
- const hash = await crypto.subtle.digest('SHA-256', encodedData);
- const bytes = new Uint8Array(hash);
- return Array.from(bytes)
- .map((c) => String.fromCharCode(c))
- .join('');
-}
-async function generatePKCEChallenge(verifier) {
- const hasCryptoSupport = typeof crypto !== 'undefined' &&
- typeof crypto.subtle !== 'undefined' &&
- typeof TextEncoder !== 'undefined';
- if (!hasCryptoSupport) {
- console.warn('WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.');
- return verifier;
- }
- const hashed = await sha256(verifier);
- return btoa(hashed).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
-}
-async function getCodeChallengeAndMethod(storage, storageKey, isPasswordRecovery = false) {
- const codeVerifier = generatePKCEVerifier();
- let storedCodeVerifier = codeVerifier;
- if (isPasswordRecovery) {
- storedCodeVerifier += '/recovery';
- }
- await (0, exports.setItemAsync)(storage, `${storageKey}-code-verifier`, storedCodeVerifier);
- const codeChallenge = await generatePKCEChallenge(codeVerifier);
- const codeChallengeMethod = codeVerifier === codeChallenge ? 'plain' : 's256';
- return [codeChallenge, codeChallengeMethod];
-}
-/** Parses the API version which is 2YYY-MM-DD. */
-const API_VERSION_REGEX = /^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;
-function parseResponseAPIVersion(response) {
- const apiVersion = response.headers.get(constants_1.API_VERSION_HEADER_NAME);
- if (!apiVersion) {
- return null;
- }
- if (!apiVersion.match(API_VERSION_REGEX)) {
- return null;
- }
- try {
- const date = new Date(`${apiVersion}T00:00:00.0Z`);
- return date;
- }
- catch (_e) {
- return null;
- }
-}
-function validateExp(exp) {
- if (!exp) {
- throw new Error('Missing exp claim');
- }
- const timeNow = Math.floor(Date.now() / 1000);
- if (exp <= timeNow) {
- throw new Error('JWT has expired');
- }
-}
-function getAlgorithm(alg) {
- switch (alg) {
- case 'RS256':
- return {
- name: 'RSASSA-PKCS1-v1_5',
- hash: { name: 'SHA-256' },
- };
- case 'ES256':
- return {
- name: 'ECDSA',
- namedCurve: 'P-256',
- hash: { name: 'SHA-256' },
- };
- default:
- throw new Error('Invalid alg claim');
- }
-}
-const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
-function validateUUID(str) {
- if (!UUID_REGEX.test(str)) {
- throw new Error('@supabase/auth-js: Expected parameter to be UUID but is not');
- }
-}
-function assertPasskeyExperimentalEnabled(experimental) {
- if (!experimental.passkey) {
- throw new Error('@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).');
- }
-}
-function userNotAvailableProxy() {
- const proxyTarget = {};
- return new Proxy(proxyTarget, {
- get: (target, prop) => {
- if (prop === '__isUserNotAvailableProxy') {
- return true;
- }
- // Preventative check for common problematic symbols during cloning/inspection
- // These symbols might be accessed by structuredClone or other internal mechanisms.
- if (typeof prop === 'symbol') {
- const sProp = prop.toString();
- if (sProp === 'Symbol(Symbol.toPrimitive)' ||
- sProp === 'Symbol(Symbol.toStringTag)' ||
- sProp === 'Symbol(util.inspect.custom)') {
- // Node.js util.inspect
- return undefined;
- }
- }
- throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${prop}" property of the session object is not supported. Please use getUser() instead.`);
- },
- set: (_target, prop) => {
- throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${prop}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`);
- },
- deleteProperty: (_target, prop) => {
- throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${prop}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`);
- },
- });
-}
-/**
- * Creates a proxy around a user object that warns when properties are accessed on the server.
- * This is used to alert developers that using user data from getSession() on the server is insecure.
- *
- * @param user The actual user object to wrap
- * @param suppressWarningRef An object with a 'value' property that controls warning suppression
- * @returns A proxied user object that warns on property access
- */
-function insecureUserWarningProxy(user, suppressWarningRef) {
- return new Proxy(user, {
- get: (target, prop, receiver) => {
- // Allow internal checks without warning
- if (prop === '__isInsecureUserWarningProxy') {
- return true;
- }
- // Preventative check for common problematic symbols during cloning/inspection
- // These symbols might be accessed by structuredClone or other internal mechanisms
- if (typeof prop === 'symbol') {
- const sProp = prop.toString();
- if (sProp === 'Symbol(Symbol.toPrimitive)' ||
- sProp === 'Symbol(Symbol.toStringTag)' ||
- sProp === 'Symbol(util.inspect.custom)' ||
- sProp === 'Symbol(nodejs.util.inspect.custom)') {
- // Return the actual value for these symbols to allow proper inspection
- return Reflect.get(target, prop, receiver);
- }
- }
- // Emit warning on first property access
- if (!suppressWarningRef.value && typeof prop === 'string') {
- console.warn('Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.');
- suppressWarningRef.value = true;
- }
- return Reflect.get(target, prop, receiver);
- },
- });
-}
-/**
- * Deep clones a JSON-serializable object using JSON.parse(JSON.stringify(obj)).
- * Note: Only works for JSON-safe data.
- */
-function deepClone(obj) {
- return JSON.parse(JSON.stringify(obj));
-}
-//# sourceMappingURL=helpers.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/helpers.js.map b/node_modules/@supabase/auth-js/dist/main/lib/helpers.js.map
deleted file mode 100644
index 83653f8..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/helpers.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/lib/helpers.ts"],"names":[],"mappings":";;;AAMA,8BAGC;AAeD,gDAEC;AAoDD,wDAsBC;AA0ED,8BAgCC;AAKD,sBAIC;AAOD,8BA0BC;AAOD,oDAcC;AAaD,sDAcC;AAED,8DAcC;AAKD,0DAiBC;AAED,kCAQC;AAED,oCAkBC;AAID,oCAIC;AAED,4EAMC;AAED,sDAoCC;AAUD,4DAkCC;AAMD,8BAEC;AAtdD,2CAAsE;AACtE,qCAA8C;AAC9C,2CAAwE;AAIxE,SAAgB,SAAS,CAAC,SAAiB;IACzC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;IAC7C,OAAO,OAAO,GAAG,SAAS,CAAA;AAC5B,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,kBAAkB;IAChC,OAAO,MAAM,CAAC,eAAe,CAAC,CAAA;AAChC,CAAC;AAEM,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,QAAQ,KAAK,WAAW,CAAA;AAAlF,QAAA,SAAS,aAAyE;AAE/F,MAAM,sBAAsB,GAAG;IAC7B,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,KAAK;CAChB,CAAA;AA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,uEAAuE;oBACvE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;gBAC5C,CAAC;YACH,CAAC;YAED,wCAAwC;YACxC,IAAI,CAAC,kBAAkB,CAAC,KAAK,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC1D,OAAO,CAAC,IAAI,CACV,iWAAiW,CAClW,CAAA;gBACD,kBAAkB,CAAC,KAAK,GAAG,IAAI,CAAA;YACjC,CAAC;YAED,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;QAC5C,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAI,GAAM;IACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;AACxC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts
deleted file mode 100644
index 05dabc3..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { SupportedStorage } from './types';
-/**
- * Returns a localStorage-like object that stores the key-value pairs in
- * memory.
- */
-export declare function memoryLocalStorageAdapter(store?: {
- [key: string]: string;
-}): SupportedStorage;
-//# sourceMappingURL=local-storage.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts.map
deleted file mode 100644
index 7dc636e..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/lib/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,GAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,GAAG,gBAAgB,CAcjG"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js b/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js
deleted file mode 100644
index bd9e06a..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.memoryLocalStorageAdapter = memoryLocalStorageAdapter;
-/**
- * Returns a localStorage-like object that stores the key-value pairs in
- * memory.
- */
-function memoryLocalStorageAdapter(store = {}) {
- return {
- getItem: (key) => {
- return store[key] || null;
- },
- setItem: (key, value) => {
- store[key] = value;
- },
- removeItem: (key) => {
- delete store[key];
- },
- };
-}
-//# sourceMappingURL=local-storage.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js.map b/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js.map
deleted file mode 100644
index c2eb762..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../../../src/lib/local-storage.ts"],"names":[],"mappings":";;AAMA,8DAcC;AAlBD;;;GAGG;AACH,SAAgB,yBAAyB,CAAC,QAAmC,EAAE;IAC7E,OAAO;QACL,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YACf,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,CAAA;QAC3B,CAAC;QAED,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACtB,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;QACpB,CAAC;QAED,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE;YAClB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAA;QACnB,CAAC;KACF,CAAA;AACH,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts
deleted file mode 100644
index 41c5032..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * @experimental
- */
-export declare const internals: {
- /**
- * @experimental
- */
- debug: boolean;
-};
-/**
- * An error thrown when a lock cannot be acquired after some amount of time.
- *
- * Use the {@link #isAcquireTimeout} property instead of checking with `instanceof`.
- *
- * @example
- * ```ts
- * import { LockAcquireTimeoutError } from '@supabase/auth-js'
- *
- * class CustomLockError extends LockAcquireTimeoutError {
- * constructor() {
- * super('Lock timed out')
- * }
- * }
- * ```
- */
-export declare abstract class LockAcquireTimeoutError extends Error {
- readonly isAcquireTimeout = true;
- constructor(message: string);
-}
-/**
- * Error thrown when the browser Navigator Lock API fails to acquire a lock.
- *
- * @example
- * ```ts
- * import { NavigatorLockAcquireTimeoutError } from '@supabase/auth-js'
- *
- * throw new NavigatorLockAcquireTimeoutError('Lock timed out')
- * ```
- */
-export declare class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError {
-}
-/**
- * Error thrown when the process-level lock helper cannot acquire a lock.
- *
- * @example
- * ```ts
- * import { ProcessLockAcquireTimeoutError } from '@supabase/auth-js'
- *
- * throw new ProcessLockAcquireTimeoutError('Lock timed out')
- * ```
- */
-export declare class ProcessLockAcquireTimeoutError extends LockAcquireTimeoutError {
-}
-/**
- * Implements a global exclusive lock using the Navigator LockManager API. It
- * is available on all browsers released after 2022-03-15 with Safari being the
- * last one to release support. If the API is not available, this function will
- * throw. Make sure you check availablility before configuring {@link
- * GoTrueClient}.
- *
- * You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`
- * local storage item to `true`.
- *
- * Internals:
- *
- * Since the LockManager API does not preserve stack traces for the async
- * function passed in the `request` method, a trick is used where acquiring the
- * lock releases a previously started promise to run the operation in the `fn`
- * function. The lock waits for that promise to finish (with or without error),
- * while the function will finally wait for the result anyway.
- *
- * @param name Name of the lock to be acquired.
- * @param acquireTimeout If negative, no timeout. If 0 an error is thrown if
- * the lock can't be acquired without waiting. If positive, the lock acquire
- * will time out after so many milliseconds. An error is
- * a timeout if it has `isAcquireTimeout` set to true.
- * @param fn The operation to run once the lock is acquired.
- * @example
- * ```ts
- * await navigatorLock('sync-user', 1000, async () => {
- * await refreshSession()
- * })
- * ```
- */
-export declare function navigatorLock(name: string, acquireTimeout: number, fn: () => Promise): Promise;
-/**
- * Implements a global exclusive lock that works only in the current process.
- * Useful for environments like React Native or other non-browser
- * single-process (i.e. no concept of "tabs") environments.
- *
- * Use {@link #navigatorLock} in browser environments.
- *
- * @param name Name of the lock to be acquired.
- * @param acquireTimeout If negative, no timeout. If 0 an error is thrown if
- * the lock can't be acquired without waiting. If positive, the lock acquire
- * will time out after so many milliseconds. An error is
- * a timeout if it has `isAcquireTimeout` set to true.
- * @param fn The operation to run once the lock is acquired.
- * @example
- * ```ts
- * await processLock('migrate', 5000, async () => {
- * await runMigration()
- * })
- * ```
- */
-export declare function processLock(name: string, acquireTimeout: number, fn: () => Promise): Promise;
-//# sourceMappingURL=locks.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts.map
deleted file mode 100644
index 998f3f6..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"locks.d.ts","sourceRoot":"","sources":["../../../src/lib/locks.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,SAAS;IACpB;;OAEG;;CAOJ,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,uBAAwB,SAAQ,KAAK;IACzD,SAAgB,gBAAgB,QAAO;gBAE3B,OAAO,EAAE,MAAM;CAG5B;AAED;;;;;;;;;GASG;AACH,qBAAa,gCAAiC,SAAQ,uBAAuB;CAAG;AAChF;;;;;;;;;GASG;AACH,qBAAa,8BAA+B,SAAQ,uBAAuB;CAAG;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,aAAa,CAAC,CAAC,EACnC,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,CAAC,CAAC,CA8MZ;AAID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,CAAC,CAAC,CAsFZ"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/locks.js b/node_modules/@supabase/auth-js/dist/main/lib/locks.js
deleted file mode 100644
index 02295d5..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/locks.js
+++ /dev/null
@@ -1,349 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ProcessLockAcquireTimeoutError = exports.NavigatorLockAcquireTimeoutError = exports.LockAcquireTimeoutError = exports.internals = void 0;
-exports.navigatorLock = navigatorLock;
-exports.processLock = processLock;
-const helpers_1 = require("./helpers");
-/**
- * @experimental
- */
-exports.internals = {
- /**
- * @experimental
- */
- debug: !!(globalThis &&
- (0, helpers_1.supportsLocalStorage)() &&
- globalThis.localStorage &&
- globalThis.localStorage.getItem('supabase.gotrue-js.locks.debug') === 'true'),
-};
-/**
- * An error thrown when a lock cannot be acquired after some amount of time.
- *
- * Use the {@link #isAcquireTimeout} property instead of checking with `instanceof`.
- *
- * @example
- * ```ts
- * import { LockAcquireTimeoutError } from '@supabase/auth-js'
- *
- * class CustomLockError extends LockAcquireTimeoutError {
- * constructor() {
- * super('Lock timed out')
- * }
- * }
- * ```
- */
-class LockAcquireTimeoutError extends Error {
- constructor(message) {
- super(message);
- this.isAcquireTimeout = true;
- }
-}
-exports.LockAcquireTimeoutError = LockAcquireTimeoutError;
-/**
- * Error thrown when the browser Navigator Lock API fails to acquire a lock.
- *
- * @example
- * ```ts
- * import { NavigatorLockAcquireTimeoutError } from '@supabase/auth-js'
- *
- * throw new NavigatorLockAcquireTimeoutError('Lock timed out')
- * ```
- */
-class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError {
-}
-exports.NavigatorLockAcquireTimeoutError = NavigatorLockAcquireTimeoutError;
-/**
- * Error thrown when the process-level lock helper cannot acquire a lock.
- *
- * @example
- * ```ts
- * import { ProcessLockAcquireTimeoutError } from '@supabase/auth-js'
- *
- * throw new ProcessLockAcquireTimeoutError('Lock timed out')
- * ```
- */
-class ProcessLockAcquireTimeoutError extends LockAcquireTimeoutError {
-}
-exports.ProcessLockAcquireTimeoutError = ProcessLockAcquireTimeoutError;
-/**
- * Implements a global exclusive lock using the Navigator LockManager API. It
- * is available on all browsers released after 2022-03-15 with Safari being the
- * last one to release support. If the API is not available, this function will
- * throw. Make sure you check availablility before configuring {@link
- * GoTrueClient}.
- *
- * You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`
- * local storage item to `true`.
- *
- * Internals:
- *
- * Since the LockManager API does not preserve stack traces for the async
- * function passed in the `request` method, a trick is used where acquiring the
- * lock releases a previously started promise to run the operation in the `fn`
- * function. The lock waits for that promise to finish (with or without error),
- * while the function will finally wait for the result anyway.
- *
- * @param name Name of the lock to be acquired.
- * @param acquireTimeout If negative, no timeout. If 0 an error is thrown if
- * the lock can't be acquired without waiting. If positive, the lock acquire
- * will time out after so many milliseconds. An error is
- * a timeout if it has `isAcquireTimeout` set to true.
- * @param fn The operation to run once the lock is acquired.
- * @example
- * ```ts
- * await navigatorLock('sync-user', 1000, async () => {
- * await refreshSession()
- * })
- * ```
- */
-async function navigatorLock(name, acquireTimeout, fn) {
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: acquire lock', name, acquireTimeout);
- }
- const abortController = new globalThis.AbortController();
- let acquireTimeoutTimer;
- if (acquireTimeout > 0) {
- acquireTimeoutTimer = setTimeout(() => {
- abortController.abort();
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock acquire timed out', name);
- }
- }, acquireTimeout);
- }
- // MDN article: https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request
- // Wrapping navigator.locks.request() with a plain Promise is done as some
- // libraries like zone.js patch the Promise object to track the execution
- // context. However, it appears that most browsers use an internal promise
- // implementation when using the navigator.locks.request() API causing them
- // to lose context and emit confusing log messages or break certain features.
- // This wrapping is believed to help zone.js track the execution context
- // better.
- await Promise.resolve();
- try {
- return await globalThis.navigator.locks.request(name, acquireTimeout === 0
- ? {
- mode: 'exclusive',
- ifAvailable: true,
- }
- : {
- mode: 'exclusive',
- signal: abortController.signal,
- }, async (lock) => {
- if (lock) {
- // Lock acquired — cancel the acquire-timeout timer so it cannot fire
- // while fn() is running. Without this, a delayed timeout abort would
- // set signal.aborted = true even though we already hold the lock,
- // causing a subsequent steal to be misclassified as "our timeout
- // fired" and triggering a spurious steal-back cascade.
- clearTimeout(acquireTimeoutTimer);
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: acquired', name, lock.name);
- }
- try {
- return await fn();
- }
- finally {
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: released', name, lock.name);
- }
- }
- }
- else {
- if (acquireTimeout === 0) {
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: not immediately available', name);
- }
- throw new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${name}" immediately failed`);
- }
- else {
- if (exports.internals.debug) {
- try {
- const result = await globalThis.navigator.locks.query();
- console.log('@supabase/gotrue-js: Navigator LockManager state', JSON.stringify(result, null, ' '));
- }
- catch (e) {
- console.warn('@supabase/gotrue-js: Error when querying Navigator LockManager state', e);
- }
- }
- // Browser is not following the Navigator LockManager spec, it
- // returned a null lock when we didn't use ifAvailable. So we can
- // pretend the lock is acquired in the name of backward compatibility
- // and user experience and just run the function.
- console.warn('@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request');
- clearTimeout(acquireTimeoutTimer);
- return await fn();
- }
- }
- });
- }
- catch (e) {
- // Always clear the acquire timeout once the request settles, so it cannot
- // fire later and incorrectly abort/log after a rejection.
- if (acquireTimeout > 0) {
- clearTimeout(acquireTimeoutTimer);
- }
- // DOMException does not extend Error in Node.js, so use structural check
- if (e !== null &&
- typeof e === 'object' &&
- 'name' in e &&
- e.name === 'AbortError' &&
- acquireTimeout > 0) {
- if (abortController.signal.aborted) {
- // OUR timeout fired — the lock is genuinely orphaned. Steal it.
- //
- // The lock acquisition was aborted because the timeout fired while the
- // request was still pending. This typically means another lock holder is
- // not releasing the lock, possibly due to React Strict Mode's
- // double-mount/unmount behavior or a component unmounting mid-operation,
- // leaving an orphaned lock.
- //
- // Recovery: use { steal: true } to forcefully acquire the lock. Per the
- // Web Locks API spec, this releases any currently held lock with the same
- // name and grants the request immediately, preempting any queued requests.
- // The previous holder's callback continues running to completion but no
- // longer holds the lock for exclusion purposes.
- //
- // See: https://github.com/supabase/supabase/issues/42505
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock', name);
- }
- console.warn(`@supabase/gotrue-js: Lock "${name}" was not released within ${acquireTimeout}ms. ` +
- 'This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). ' +
- 'Forcefully acquiring the lock to recover.');
- return await Promise.resolve().then(() => globalThis.navigator.locks.request(name, {
- mode: 'exclusive',
- steal: true,
- }, async (lock) => {
- if (lock) {
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: recovered (stolen)', name, lock.name);
- }
- try {
- return await fn();
- }
- finally {
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: released (stolen)', name, lock.name);
- }
- }
- }
- else {
- // This should not happen with steal: true, but handle gracefully.
- console.warn('@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true');
- return await fn();
- }
- }));
- }
- else {
- // We HELD the lock but another request stole it from us.
- // Per the Web Locks spec, our fn() callback is still running as an
- // orphaned background task — do NOT steal back. Stealing back would
- // cause a cascade (A steals B, B steals A, ...) and run fn() a second
- // time concurrently, corrupting auth state.
- // Convert to a typed error so callers (e.g. _autoRefreshTokenTick)
- // can handle/filter it without it leaking to Sentry as a raw AbortError.
- if (exports.internals.debug) {
- console.log('@supabase/gotrue-js: navigatorLock: lock was stolen by another request', name);
- }
- throw new NavigatorLockAcquireTimeoutError(`Lock "${name}" was released because another request stole it`);
- }
- }
- throw e;
- }
-}
-const PROCESS_LOCKS = {};
-/**
- * Implements a global exclusive lock that works only in the current process.
- * Useful for environments like React Native or other non-browser
- * single-process (i.e. no concept of "tabs") environments.
- *
- * Use {@link #navigatorLock} in browser environments.
- *
- * @param name Name of the lock to be acquired.
- * @param acquireTimeout If negative, no timeout. If 0 an error is thrown if
- * the lock can't be acquired without waiting. If positive, the lock acquire
- * will time out after so many milliseconds. An error is
- * a timeout if it has `isAcquireTimeout` set to true.
- * @param fn The operation to run once the lock is acquired.
- * @example
- * ```ts
- * await processLock('migrate', 5000, async () => {
- * await runMigration()
- * })
- * ```
- */
-async function processLock(name, acquireTimeout, fn) {
- var _a;
- const previousOperation = (_a = PROCESS_LOCKS[name]) !== null && _a !== void 0 ? _a : Promise.resolve();
- // Wrap previousOperation to handle errors without using .catch()
- // This avoids Firefox content script security errors
- const previousOperationHandled = (async () => {
- try {
- await previousOperation;
- return null;
- }
- catch (e) {
- // ignore error of previous operation that we're waiting to finish
- return null;
- }
- })();
- const currentOperation = (async () => {
- let timeoutId = null;
- try {
- // Wait for either previous operation or timeout
- const timeoutPromise = acquireTimeout >= 0
- ? new Promise((_, reject) => {
- timeoutId = setTimeout(() => {
- console.warn(`@supabase/gotrue-js: Lock "${name}" acquisition timed out after ${acquireTimeout}ms. ` +
- 'This may be caused by another operation holding the lock. ' +
- 'Consider increasing lockAcquireTimeout or checking for stuck operations.');
- reject(new ProcessLockAcquireTimeoutError(`Acquiring process lock with name "${name}" timed out`));
- }, acquireTimeout);
- })
- : null;
- await Promise.race([previousOperationHandled, timeoutPromise].filter((x) => x));
- // If we reach here, previousOperationHandled won the race
- // Clear the timeout to prevent false warnings
- if (timeoutId !== null) {
- clearTimeout(timeoutId);
- }
- }
- catch (e) {
- // Clear the timeout on error path as well
- if (timeoutId !== null) {
- clearTimeout(timeoutId);
- }
- // Re-throw timeout errors, ignore others
- if (e instanceof LockAcquireTimeoutError) {
- throw e;
- }
- // Fall through to run fn() - previous operation finished with error
- }
- // Previous operations finished and we didn't get a race on the acquire
- // timeout, so the current operation can finally start
- return await fn();
- })();
- PROCESS_LOCKS[name] = (async () => {
- try {
- return await currentOperation;
- }
- catch (e) {
- if (e instanceof LockAcquireTimeoutError) {
- // if the current operation timed out, it doesn't mean that the previous
- // operation finished, so we need continue waiting for it to finish
- try {
- await previousOperation;
- }
- catch (prevError) {
- // Ignore previous operation errors
- }
- return null;
- }
- throw e;
- }
- })();
- // finally wait for the current operation to finish successfully, with an
- // error or with an acquire timeout error
- return await currentOperation;
-}
-//# sourceMappingURL=locks.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/locks.js.map b/node_modules/@supabase/auth-js/dist/main/lib/locks.js.map
deleted file mode 100644
index c0412e5..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/locks.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"locks.js","sourceRoot":"","sources":["../../../src/lib/locks.ts"],"names":[],"mappings":";;;AA+FA,sCAkNC;AAwBD,kCA0F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supabase/auth-js/dist/main/lib/polyfills.d.ts
deleted file mode 100644
index d85562a..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * https://mathiasbynens.be/notes/globalthis
- */
-export declare function polyfillGlobalThis(): void;
-//# sourceMappingURL=polyfills.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.d.ts.map b/node_modules/@supabase/auth-js/dist/main/lib/polyfills.d.ts.map
deleted file mode 100644
index ee5ea0f..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"polyfills.d.ts","sourceRoot":"","sources":["../../../src/lib/polyfills.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,kBAAkB,SAmBjC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js b/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js
deleted file mode 100644
index 7623d47..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.polyfillGlobalThis = polyfillGlobalThis;
-/**
- * https://mathiasbynens.be/notes/globalthis
- */
-function polyfillGlobalThis() {
- if (typeof globalThis === 'object')
- return;
- try {
- Object.defineProperty(Object.prototype, '__magic__', {
- get: function () {
- return this;
- },
- configurable: true,
- });
- // @ts-expect-error 'Allow access to magic'
- __magic__.globalThis = __magic__;
- // @ts-expect-error 'Allow access to magic'
- delete Object.prototype.__magic__;
- }
- catch (e) {
- if (typeof self !== 'undefined') {
- // @ts-expect-error 'Allow access to globals'
- self.globalThis = self;
- }
- }
-}
-//# sourceMappingURL=polyfills.js.map
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js.map b/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js.map
deleted file mode 100644
index 8edc336..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../../../src/lib/polyfills.ts"],"names":[],"mappings":";;AAGA,gDAmBC;AAtBD;;GAEG;AACH,SAAgB,kBAAkB;IAChC,IAAI,OAAO,UAAU,KAAK,QAAQ;QAAE,OAAM;IAC1C,IAAI,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE;YACnD,GAAG,EAAE;gBACH,OAAO,IAAI,CAAA;YACb,CAAC;YACD,YAAY,EAAE,IAAI;SACnB,CAAC,CAAA;QACF,2CAA2C;QAC3C,SAAS,CAAC,UAAU,GAAG,SAAS,CAAA;QAChC,2CAA2C;QAC3C,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAA;IACnC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;YAChC,6CAA6C;YAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;QACxB,CAAC;IACH,CAAC;AACH,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@supabase/auth-js/dist/main/lib/types.d.ts b/node_modules/@supabase/auth-js/dist/main/lib/types.d.ts
deleted file mode 100644
index 793aa54..0000000
--- a/node_modules/@supabase/auth-js/dist/main/lib/types.d.ts
+++ /dev/null
@@ -1,2498 +0,0 @@
-import { AuthError } from './errors';
-import { Fetch } from './fetch';
-import { EIP1193Provider, EthereumSignInInput, Hex } from './web3/ethereum';
-import type { SolanaSignInInput, SolanaSignInOutput } from './web3/solana';
-import { ServerCredentialCreationOptions, ServerCredentialRequestOptions, WebAuthnApi, WebAuthnError } from './webauthn';
-import type { RegistrationResponseJSON, AuthenticationResponseJSON, ServerCredentialResponse } from './webauthn';
-import { AuthenticationCredential, PublicKeyCredentialCreationOptionsFuture, PublicKeyCredentialRequestOptionsFuture, RegistrationCredential } from './webauthn.dom';
-/** One of the providers supported by GoTrue. Use the `custom:` prefix for custom OIDC providers (e.g. `custom:my-oidc-provider`). */
-export type Provider = 'apple' | 'azure' | 'bitbucket' | 'discord' | 'facebook' | 'figma' | 'github' | 'gitlab' | 'google' | 'kakao' | 'keycloak' | 'linkedin' | 'linkedin_oidc' | 'notion' | 'slack' | 'slack_oidc' | 'spotify' | 'twitch'
-/** Uses OAuth 1.0a */
- | 'twitter'
-/** Uses OAuth 2.0 */
- | 'x' | 'workos' | 'zoom' | 'fly' | `custom:${string}`;
-export type AuthChangeEventMFA = 'MFA_CHALLENGE_VERIFIED';
-export type AuthChangeEvent = 'INITIAL_SESSION' | 'PASSWORD_RECOVERY' | 'SIGNED_IN' | 'SIGNED_OUT' | 'TOKEN_REFRESHED' | 'USER_UPDATED' | AuthChangeEventMFA;
-/**
- * Provide your own global lock implementation instead of the default
- * implementation. The function should acquire a lock for the duration of the
- * `fn` async function, such that no other client instances will be able to
- * hold it at the same time.
- *
- * @experimental
- *
- * @param name Name of the lock to be acquired.
- * @param acquireTimeout If negative, no timeout should occur. If positive it
- * should throw an Error with an `isAcquireTimeout`
- * property set to true if the operation fails to be
- * acquired after this much time (ms).
- * @param fn The operation to execute when the lock is acquired.
- */
-export type LockFunc = (name: string, acquireTimeout: number, fn: () => Promise) => Promise;
-export type GoTrueClientOptions = {
- url?: string;
- headers?: {
- [key: string]: string;
- };
- storageKey?: string;
- /**
- * Set to "true" if you want to automatically detect OAuth grants in the URL and sign in the user.
- * Set to "false" to disable automatic detection.
- * Set to a function to provide custom logic for determining if a URL contains a Supabase auth callback.
- * The function receives the current URL and parsed parameters, and should return true if the URL
- * should be processed as a Supabase auth callback, or false to ignore it.
- *
- * This is useful when your app uses other OAuth providers (e.g., Facebook Login) that also return
- * access_token in the URL fragment, which would otherwise be incorrectly intercepted by Supabase Auth.
- *
- * @example
- * ```ts
- * detectSessionInUrl: (url, params) => {
- * // Ignore Facebook OAuth redirects
- * if (url.pathname === '/facebook/redirect') return false
- * // Use default detection for other URLs
- * return Boolean(params.access_token || params.error_description)
- * }
- * ```
- */
- detectSessionInUrl?: boolean | ((url: URL, params: {
- [parameter: string]: string;
- }) => boolean);
- autoRefreshToken?: boolean;
- persistSession?: boolean;
- storage?: SupportedStorage;
- /**
- * Stores the user object in a separate storage location from the rest of the session data. When non-null, `storage` will only store a JSON object containing the access and refresh token and some adjacent metadata, while `userStorage` will only contain the user object under the key `storageKey + '-user'`.
- *
- * When this option is set and cookie storage is used, `getSession()` and other functions that load a session from the cookie store might not return back a user. It's very important to always use `getUser()` to fetch a user object in those scenarios.
- *
- * @experimental
- */
- userStorage?: SupportedStorage;
- fetch?: Fetch;
- flowType?: AuthFlowType;
- debug?: boolean | ((message: string, ...args: any[]) => void);
- /**
- * Provide your own locking mechanism based on the environment. By default,
- * `navigatorLock` (Web Locks API) is used in browser environments when
- * `persistSession` is true. Falls back to an in-process lock for non-browser
- * environments (e.g. React Native).
- *
- * @experimental
- */
- lock?: LockFunc;
- /**
- * Set to "true" if there is a custom authorization header set globally.
- * @experimental
- */
- hasCustomAuthorizationHeader?: boolean;
- /**
- * If there is an error with the query, throwOnError will reject the promise by
- * throwing the error instead of returning it as part of a successful response.
- */
- throwOnError?: boolean;
- /**
- * The maximum time in milliseconds to wait for acquiring a cross-tab synchronization lock.
- *
- * When multiple browser tabs or windows use the auth client simultaneously, they coordinate
- * via the Web Locks API to prevent race conditions during session refresh and other operations.
- * This timeout controls how long to wait before attempting lock recovery.
- *
- * - **Positive value**: Wait up to this many milliseconds. If the lock is still held, attempt
- * automatic recovery by stealing it (the previous holder is evicted, its callback continues
- * to completion without exclusive access). This recovers from orphaned locks caused by
- * React Strict Mode double-mount, storage API hangs, or aborted operations.
- * - **Zero (0)**: Fail immediately if the lock is unavailable; throws `LockAcquireTimeoutError`
- * (check `error.isAcquireTimeout === true`).
- * - **Negative value**: Wait indefinitely — can cause permanent deadlocks if the lock is orphaned.
- *
- * @default 5000
- *
- * @example
- * ```ts
- * const client = createClient(url, key, {
- * auth: {
- * lockAcquireTimeout: 5000, // 5 seconds, then steal orphaned lock
- * },
- * })
- * ```
- */
- lockAcquireTimeout?: number;
- /**
- * If true, skips automatic initialization in constructor. Useful for SSR
- * contexts where initialization timing must be controlled to prevent race
- * conditions with HTTP response generation.
- *
- * @default false
- */
- skipAutoInitialize?: boolean;
- /**
- * Opt-in flags for experimental features. These APIs may change without
- * notice and are disabled by default.
- *
- * @experimental
- */
- experimental?: ExperimentalFeatureFlags;
-};
-export type ExperimentalFeatureFlags = {
- /**
- * Enables passkey support:
- * - `auth.signInWithPasskey()`, `auth.registerPasskey()`
- * - `auth.passkey.*`
- * - `auth.admin.passkey.*`
- *
- * Defaults to `false`. Calling any passkey method while this flag is
- * disabled throws a descriptive error at call time.
- */
- passkey?: boolean;
-};
-declare const WeakPasswordReasons: readonly ["length", "characters", "pwned"];
-export type WeakPasswordReasons = (typeof WeakPasswordReasons)[number];
-export type WeakPassword = {
- reasons: WeakPasswordReasons[];
- message: string;
-};
-/**
- * Resolve mapped types and show the derived keys and their types when hovering in
- * VS Code, instead of just showing the names those mapped types are defined with.
- */
-export type Prettify = T extends Function ? T : {
- [K in keyof T]: T[K];
-};
-/**
- * A stricter version of TypeScript's Omit that only allows omitting keys that actually exist.
- * This prevents typos and ensures type safety at compile time.
- * Unlike regular Omit, this will error if you try to omit a non-existent key.
- */
-export type StrictOmit = Omit;
-/**
- * a shared result type that encapsulates errors instead of throwing them, allows you to optionally specify the ErrorType
- */
-export type RequestResult = {
- data: T;
- error: null;
-} | {
- data: null;
- error: Error extends AuthError ? AuthError : ErrorType;
-};
-/**
- * similar to RequestResult except it allows you to destructure the possible shape of the success response
- * {@see RequestResult}
- */
-export type RequestResultSafeDestructure = {
- data: T;
- error: null;
-} | {
- data: T extends object ? {
- [K in keyof T]: null;
- } : null;
- error: AuthError;
-};
-export type AuthResponse = RequestResultSafeDestructure<{
- user: User | null;
- session: Session | null;
-}>;
-export type AuthResponsePassword = RequestResultSafeDestructure<{
- user: User | null;
- session: Session | null;
- weak_password?: WeakPassword | null;
-}>;
-/**
- * AuthOtpResponse is returned when OTP is used.
- *
- * {@see AuthResponse}
- */
-export type AuthOtpResponse = RequestResultSafeDestructure<{
- user: null;
- session: null;
- messageId?: string | null;
-}>;
-export type AuthTokenResponse = RequestResultSafeDestructure<{
- user: User;
- session: Session;
-}>;
-export type AuthTokenResponsePassword = RequestResultSafeDestructure<{
- user: User;
- session: Session;
- weakPassword?: WeakPassword;
-}>;
-export type OAuthResponse = {
- data: {
- provider: Provider;
- url: string;
- };
- error: null;
-} | {
- data: {
- provider: Provider;
- url: null;
- };
- error: AuthError;
-};
-export type SSOResponse = RequestResult<{
- /**
- * URL to open in a browser which will complete the sign-in flow by
- * taking the user to the identity provider's authentication flow.
- *
- * On browsers you can set the URL to `window.location.href` to take
- * the user to the authentication flow.
- */
- url: string;
-}>;
-export type UserResponse = RequestResultSafeDestructure<{
- user: User;
-}>;
-export interface Session {
- /**
- * The oauth provider token. If present, this can be used to make external API requests to the oauth provider used.
- */
- provider_token?: string | null;
- /**
- * The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.
- * Not all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token.
- */
- provider_refresh_token?: string | null;
- /**
- * The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value.
- */
- access_token: string;
- /**
- * A one-time used refresh token that never expires.
- */
- refresh_token: string;
- /**
- * The number of seconds until the token expires (since it was issued). Returned when a login is confirmed.
- */
- expires_in: number;
- /**
- * A timestamp of when the token will expire. Returned when a login is confirmed.
- */
- expires_at?: number;
- token_type: 'bearer';
- /**
- * When using a separate user storage, accessing properties of this object will throw an error.
- */
- user: User;
-}
-declare const AMRMethods: readonly ["password", "otp", "oauth", "totp", "mfa/totp", "mfa/phone", "mfa/webauthn", "anonymous", "sso/saml", "magiclink", "web3", "oauth_provider/authorization_code"];
-export type AMRMethod = (typeof AMRMethods)[number] | (string & {});
-/**
- * An authentication method reference (AMR) entry.
- *
- * An entry designates what method was used by the user to verify their
- * identity and at what time.
- *
- * Note: Custom access token hooks can return AMR claims as either:
- * - An array of AMREntry objects (detailed format with timestamps)
- * - An array of strings (RFC-8176 compliant format)
- *
- * @see {@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}.
- */
-export interface AMREntry {
- /** Authentication method name. */
- method: AMRMethod;
- /**
- * Timestamp when the method was successfully used. Represents number of
- * seconds since 1st January 1970 (UNIX epoch) in UTC.
- */
- timestamp: number;
-}
-export interface UserIdentity {
- id: string;
- user_id: string;
- identity_data?: {
- [key: string]: any;
- };
- identity_id: string;
- provider: string;
- created_at?: string;
- last_sign_in_at?: string;
- updated_at?: string;
-}
-declare const FactorTypes: readonly ["totp", "phone", "webauthn"];
-/**
- * Type of factor. `totp` and `phone` supported with this version
- */
-export type FactorType = (typeof FactorTypes)[number];
-declare const FactorVerificationStatuses: readonly ["verified", "unverified"];
-/**
- * The verification status of the factor, default is `unverified` after `.enroll()`, then `verified` after the user verifies it with `.verify()`
- */
-type FactorVerificationStatus = (typeof FactorVerificationStatuses)[number];
-/**
- * A MFA factor.
- *
- * @see {@link GoTrueMFAApi#enroll}
- * @see {@link GoTrueMFAApi#listFactors}
- * @see {@link GoTrueMFAAdminApi#listFactors}
- */
-export type Factor = {
- /** ID of the factor. */
- id: string;
- /** Friendly name of the factor, useful to disambiguate between multiple factors. */
- friendly_name?: string;
- /**
- * Type of factor. `totp` and `phone` supported with this version
- */
- factor_type: Type;
- /**
- * The verification status of the factor, default is `unverified` after `.enroll()`, then `verified` after the user verifies it with `.verify()`
- */
- status: Status;
- created_at: string;
- updated_at: string;
- last_challenged_at?: string;
-};
-export interface UserAppMetadata {
- /**
- * The first provider that the user used to sign up with.
- */
- provider?: string;
- /**
- * A list of all providers that the user has linked to their account.
- */
- providers?: string[];
- [key: string]: any;
-}
-export interface UserMetadata {
- [key: string]: any;
-}
-export interface User {
- id: string;
- app_metadata: UserAppMetadata;
- user_metadata: UserMetadata;
- aud: string;
- confirmation_sent_at?: string;
- recovery_sent_at?: string;
- email_change_sent_at?: string;
- new_email?: string;
- new_phone?: string;
- invited_at?: string;
- action_link?: string;
- email?: string;
- phone?: string;
- created_at: string;
- confirmed_at?: string;
- email_confirmed_at?: string;
- phone_confirmed_at?: string;
- last_sign_in_at?: string;
- role?: string;
- updated_at?: string;
- identities?: UserIdentity[];
- is_anonymous?: boolean;
- is_sso_user?: boolean;
- factors?: (Factor | Factor)[];
- deleted_at?: string;
- banned_until?: string;
-}
-export interface UserAttributes {
- /**
- * The user's current password
- *
- * This is only ever present when the user is resetting
- * their password and GOTRUE_SECURITY_UPDATE_PASSWORD_REQUIRE_CURRENT_PASSWORD is true.
- *
- */
- current_password?: string;
- /**
- * The user's email.
- */
- email?: string;
- /**
- * The user's phone.
- */
- phone?: string;
- /**
- * The user's password.
- */
- password?: string;
- /**
- * The nonce sent for reauthentication if the user's password is to be updated.
- *
- * Call reauthenticate() to obtain the nonce first.
- */
- nonce?: string;
- /**
- * A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.
- *
- * The `data` should be a JSON object that includes user-specific info, such as their first and last name.
- *
- */
- data?: object;
-}
-export interface AdminUserAttributes extends Omit {
- /**
- * A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.
- *
- *
- * The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.
- *
- * Note: When using the GoTrueAdminApi and wanting to modify a user's metadata,
- * this attribute is used instead of UserAttributes data.
- *
- */
- user_metadata?: object;
- /**
- * A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column.
- *
- * Only a service role can modify.
- *
- * The `app_metadata` should be a JSON object that includes app-specific info, such as identity providers, roles, and other
- * access control information.
- */
- app_metadata?: object;
- /**
- * Sets the user's email as confirmed when true, or unconfirmed when false.
- *
- * Only a service role can modify.
- */
- email_confirm?: boolean;
- /**
- * Sets the user's phone as confirmed when true, or unconfirmed when false.
- *
- * Only a service role can modify.
- */
- phone_confirm?: boolean;
- /**
- * Determines how long a user is banned for.
- *
- * The format for the ban duration follows a strict sequence of decimal numbers with a unit suffix.
- * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
- *
- * For example, some possible durations include: '300ms', '2h45m'.
- *
- * Setting the ban duration to 'none' lifts the ban on the user.
- */
- ban_duration?: string | 'none';
- /**
- * The `role` claim set in the user's access token JWT.
- *
- * When a user signs up, this role is set to `authenticated` by default. You should only modify the `role` if you need to provision several levels of admin access that have different permissions on individual columns in your database.
- *
- * Setting this role to `service_role` is not recommended as it grants the user admin privileges.
- */
- role?: string;
- /**
- * The `password_hash` for the user's password.
- *
- * Allows you to specify a password hash for the user. This is useful for migrating a user's password hash from another service.
- *
- * Supports bcrypt, scrypt (firebase), and argon2 password hashes.
- */
- password_hash?: string;
- /**
- * The `id` for the user.
- *
- * Allows you to overwrite the default `id` set for the user.
- */
- id?: string;
-}
-export interface Subscription {
- /**
- * A unique identifier for this subscription, set by the client.
- * This is an internal identifier used for managing callbacks and should not be
- * relied upon by application code. Use the unsubscribe() method to remove listeners.
- */
- id: string | symbol;
- /**
- * The function to call every time there is an event. eg: (eventName) => {}
- */
- callback: (event: AuthChangeEvent, session: Session | null) => void;
- /**
- * Call this to remove the listener.
- */
- unsubscribe: () => void;
-}
-export type SignInAnonymouslyCredentials = {
- options?: {
- /**
- * A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.
- *
- * The `data` should be a JSON object that includes user-specific info, such as their first and last name.
- */
- data?: object;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-};
-export type SignUpWithPasswordCredentials = PasswordCredentialsBase & {
- options?: {
- emailRedirectTo?: string;
- data?: object;
- captchaToken?: string;
- channel?: 'sms' | 'whatsapp';
- };
-};
-type PasswordCredentialsBase = {
- email: string;
- password: string;
-} | {
- phone: string;
- password: string;
-};
-export type SignInWithPasswordCredentials = PasswordCredentialsBase & {
- options?: {
- captchaToken?: string;
- };
-};
-export type SignInWithPasswordlessCredentials = {
- /** The user's email address. */
- email: string;
- options?: {
- /** The redirect url embedded in the email link */
- emailRedirectTo?: string;
- /** If set to false, this method will not create a new user. Defaults to true. */
- shouldCreateUser?: boolean;
- /**
- * A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.
- *
- * The `data` should be a JSON object that includes user-specific info, such as their first and last name.
- */
- data?: object;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-} | {
- /** The user's phone number. */
- phone: string;
- options?: {
- /** If set to false, this method will not create a new user. Defaults to true. */
- shouldCreateUser?: boolean;
- /**
- * A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.
- *
- * The `data` should be a JSON object that includes user-specific info, such as their first and last name.
- */
- data?: object;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- /** Messaging channel to use (e.g. whatsapp or sms) */
- channel?: 'sms' | 'whatsapp';
- };
-};
-export type AuthFlowType = 'implicit' | 'pkce' | (string & {});
-export type SignInWithOAuthCredentials = {
- /** One of the providers supported by GoTrue. */
- provider: Provider;
- options?: {
- /** A URL to send the user to after they are confirmed. */
- redirectTo?: string;
- /** A space-separated list of scopes granted to the OAuth application. */
- scopes?: string;
- /** An object of query params */
- queryParams?: {
- [key: string]: string;
- };
- /** If set to true does not immediately redirect the current browser context to visit the OAuth authorization page for the provider. */
- skipBrowserRedirect?: boolean;
- };
-};
-export type SignInWithIdTokenCredentials = {
- /** Provider name or OIDC `iss` value identifying which provider should be used to verify the provided token. Supported names: `google`, `apple`, `azure`, `facebook`, `kakao`. Use the `custom:` prefix for custom OIDC providers (e.g. `custom:my-oidc-provider`). */
- provider: 'google' | 'apple' | 'azure' | 'facebook' | 'kakao' | `custom:${string}` | (string & {});
- /** OIDC ID token issued by the specified provider. The `iss` claim in the ID token must match the supplied provider. Some ID tokens contain an `at_hash` which require that you provide an `access_token` value to be accepted properly. If the token contains a `nonce` claim you must supply the nonce used to obtain the ID token. */
- token: string;
- /** If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token. */
- access_token?: string;
- /** If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token. */
- nonce?: string;
- options?: {
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-};
-export type SolanaWallet = {
- signIn?: (...inputs: SolanaSignInInput[]) => Promise;
- publicKey?: {
- toBase58: () => string;
- } | null;
- signMessage?: (message: Uint8Array, encoding?: 'utf8' | string) => Promise | undefined;
-};
-export type SolanaWeb3Credentials = {
- chain: 'solana';
- /** Wallet interface to use. If not specified will default to `window.solana`. */
- wallet?: SolanaWallet;
- /** Optional statement to include in the Sign in with Solana message. Must not include new line characters. Most wallets like Phantom **require specifying a statement!** */
- statement?: string;
- options?: {
- /** URL to use with the wallet interface. Some wallets do not allow signing a message for URLs different from the current page. */
- url?: string;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- signInWithSolana?: Partial>;
- };
-} | {
- chain: 'solana';
- /** Sign in with Solana compatible message. Must include `Issued At`, `URI` and `Version`. */
- message: string;
- /** Ed25519 signature of the message. */
- signature: Uint8Array;
- options?: {
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-};
-export type EthereumWallet = EIP1193Provider;
-export type EthereumWeb3Credentials = {
- chain: 'ethereum';
- /** Wallet interface to use. If not specified will default to `window.ethereum`. */
- wallet?: EthereumWallet;
- /** Optional statement to include in the Sign in with Ethereum message. Must not include new line characters. Most wallets like Phantom **require specifying a statement!** */
- statement?: string;
- options?: {
- /** URL to use with the wallet interface. Some wallets do not allow signing a message for URLs different from the current page. */
- url?: string;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- signInWithEthereum?: Partial>;
- };
-} | {
- chain: 'ethereum';
- /** Sign in with Ethereum compatible message. Must include `Issued At`, `URI` and `Version`. */
- message: string;
- /** Ethereum curve (secp256k1) signature of the message. */
- signature: Hex;
- options?: {
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-};
-export type Web3Credentials = SolanaWeb3Credentials | EthereumWeb3Credentials;
-export type VerifyOtpParams = VerifyMobileOtpParams | VerifyEmailOtpParams | VerifyTokenHashParams;
-export interface VerifyMobileOtpParams {
- /** The user's phone number. */
- phone: string;
- /** The otp sent to the user's phone number. */
- token: string;
- /** The user's verification type. */
- type: MobileOtpType;
- options?: {
- /** A URL to send the user to after they are confirmed. */
- redirectTo?: string;
- /**
- * Verification token received when the user completes the captcha on the site.
- *
- * @deprecated
- */
- captchaToken?: string;
- };
-}
-export interface VerifyEmailOtpParams {
- /** The user's email address. */
- email: string;
- /** The otp sent to the user's email address. */
- token: string;
- /** The user's verification type. */
- type: EmailOtpType;
- options?: {
- /** A URL to send the user to after they are confirmed. */
- redirectTo?: string;
- /** Verification token received when the user completes the captcha on the site.
- *
- * @deprecated
- */
- captchaToken?: string;
- };
-}
-export interface VerifyTokenHashParams {
- /** The token hash used in an email link */
- token_hash: string;
- /** The user's verification type. */
- type: EmailOtpType;
-}
-export type MobileOtpType = 'sms' | 'phone_change' | (string & {});
-export type EmailOtpType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change' | 'email' | (string & {});
-export type ResendParams = {
- type: Extract;
- email: string;
- options?: {
- /** A URL to send the user to after they have signed-in. */
- emailRedirectTo?: string;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-} | {
- type: Extract;
- phone: string;
- options?: {
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- };
-};
-export type SignInWithSSO = {
- /** UUID of the SSO provider to invoke single-sign on to. */
- providerId: string;
- options?: {
- /** A URL to send the user to after they have signed-in. */
- redirectTo?: string;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- /**
- * If set to true, the redirect will not happen on the client side.
- * This parameter is used when you wish to handle the redirect yourself.
- * Defaults to false.
- */
- skipBrowserRedirect?: boolean;
- };
-} | {
- /** Domain name of the organization for which to invoke single-sign on. */
- domain: string;
- options?: {
- /** A URL to send the user to after they have signed-in. */
- redirectTo?: string;
- /** Verification token received when the user completes the captcha on the site. */
- captchaToken?: string;
- /**
- * If set to true, the redirect will not happen on the client side.
- * This parameter is used when you wish to handle the redirect yourself.
- * Defaults to false.
- */
- skipBrowserRedirect?: boolean;
- };
-};
-export type GenerateSignupLinkParams = {
- type: 'signup';
- email: string;
- password: string;
- options?: Pick;
-};
-export type GenerateInviteOrMagiclinkParams = {
- type: 'invite' | 'magiclink';
- /** The user's email */
- email: string;
- options?: Pick;
-};
-export type GenerateRecoveryLinkParams = {
- type: 'recovery';
- /** The user's email */
- email: string;
- options?: Pick;
-};
-export type GenerateEmailChangeLinkParams = {
- type: 'email_change_current' | 'email_change_new';
- /** The user's email */
- email: string;
- /**
- * The user's new email. Only required if type is 'email_change_current' or 'email_change_new'.
- */
- newEmail: string;
- options?: Pick;
-};
-export interface GenerateLinkOptions {
- /**
- * A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.
- *
- * The `data` should be a JSON object that includes user-specific info, such as their first and last name.
- */
- data?: object;
- /** The URL which will be appended to the email link generated. */
- redirectTo?: string;
-}
-export type GenerateLinkParams = GenerateSignupLinkParams | GenerateInviteOrMagiclinkParams | GenerateRecoveryLinkParams | GenerateEmailChangeLinkParams;
-export type GenerateLinkResponse = RequestResultSafeDestructure<{
- properties: GenerateLinkProperties;
- user: User;
-}>;
-/** The properties related to the email link generated */
-export type GenerateLinkProperties = {
- /**
- * The email link to send to the user.
- * The action_link follows the following format: auth/v1/verify?type={verification_type}&token={hashed_token}&redirect_to={redirect_to}
- * */
- action_link: string;
- /**
- * The raw email OTP.
- * You should send this in the email if you want your users to verify using an OTP instead of the action link.
- * */
- email_otp: string;
- /**
- * The hashed token appended to the action link.
- * */
- hashed_token: string;
- /** The URL appended to the action link. */
- redirect_to: string;
- /** The verification type that the email link is associated to. */
- verification_type: GenerateLinkType;
-};
-export type GenerateLinkType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change_current' | 'email_change_new';
-export type MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams | MFAEnrollWebauthnParams;
-export type MFAUnenrollParams = {
- /** ID of the factor being unenrolled. */
- factorId: string;
-};
-type MFAVerifyParamsBase = {
- /** ID of the factor being verified. Returned in enroll(). */
- factorId: string;
- /** ID of the challenge being verified. Returned in challenge(). */
- challengeId: string;
-};
-type MFAVerifyTOTPParamFields = {
- /** Verification code provided by the user. */
- code: string;
-};
-export type MFAVerifyTOTPParams = MFAVerifyParamsBase & MFAVerifyTOTPParamFields;
-type MFAVerifyPhoneParamFields = MFAVerifyTOTPParamFields;
-export type MFAVerifyPhoneParams = MFAVerifyParamsBase & MFAVerifyPhoneParamFields;
-type MFAVerifyWebauthnParamFieldsBase = {
- /** Relying party ID */
- rpId: string;
- /** Relying party origins */
- rpOrigins?: string[];
-};
-type MFAVerifyWebauthnCredentialParamFields = {
- /** Operation type */
- type: T;
- /** Creation response from the authenticator (for enrollment/unverified factors) */
- credential_response: T extends 'create' ? RegistrationCredential : AuthenticationCredential;
-};
-/**
- * WebAuthn-specific fields for MFA verification.
- * Supports both credential creation (registration) and request (authentication) flows.
- * @template T - Type of WebAuthn operation: 'create' for registration, 'request' for authentication
- */
-export type MFAVerifyWebauthnParamFields = {
- webauthn: MFAVerifyWebauthnParamFieldsBase & MFAVerifyWebauthnCredentialParamFields;
-};
-/**
- * Parameters for WebAuthn MFA verification.
- * Used to verify WebAuthn credentials after challenge.
- * @template T - Type of WebAuthn operation: 'create' for registration, 'request' for authentication
- * @see {@link https://w3c.github.io/webauthn/#sctn-verifying-assertion W3C WebAuthn Spec - Verifying an Authentication Assertion}
- */
-export type MFAVerifyWebauthnParams = MFAVerifyParamsBase & MFAVerifyWebauthnParamFields;
-export type MFAVerifyParams = MFAVerifyTOTPParams | MFAVerifyPhoneParams | MFAVerifyWebauthnParams;
-type MFAChallengeParamsBase = {
- /** ID of the factor to be challenged. Returned in enroll(). */
- factorId: string;
-};
-declare const MFATOTPChannels: readonly ["sms", "whatsapp"];
-export type MFATOTPChannel = (typeof MFATOTPChannels)[number];
-export type MFAChallengeTOTPParams = MFAChallengeParamsBase;
-type MFAChallengePhoneParamFields = {
- /** Messaging channel to use (e.g. whatsapp or sms). Only relevant for phone factors */
- channel: Channel;
-};
-export type MFAChallengePhoneParams = MFAChallengeParamsBase & MFAChallengePhoneParamFields;
-/** WebAuthn parameters for WebAuthn factor challenge */
-type MFAChallengeWebauthnParamFields = {
- webauthn: {
- /** Relying party ID */
- rpId: string;
- /** Relying party origins*/
- rpOrigins?: string[];
- };
-};
-/**
- * Parameters for initiating a WebAuthn MFA challenge.
- * Includes Relying Party information needed for WebAuthn ceremonies.
- * @see {@link https://w3c.github.io/webauthn/#sctn-rp-operations W3C WebAuthn Spec - Relying Party Operations}
- */
-export type MFAChallengeWebauthnParams = MFAChallengeParamsBase & MFAChallengeWebauthnParamFields;
-export type MFAChallengeParams = MFAChallengeTOTPParams | MFAChallengePhoneParams | MFAChallengeWebauthnParams;
-type MFAChallengeAndVerifyParamsBase = Omit;
-type MFAChallengeAndVerifyTOTPParamFields = MFAVerifyTOTPParamFields;
-type MFAChallengeAndVerifyTOTPParams = MFAChallengeAndVerifyParamsBase & MFAChallengeAndVerifyTOTPParamFields;
-export type MFAChallengeAndVerifyParams = MFAChallengeAndVerifyTOTPParams;
-/**
- * Data returned after successful MFA verification.
- * Contains new session tokens and updated user information.
- */
-export type AuthMFAVerifyResponseData = {
- /** New access token (JWT) after successful verification. */
- access_token: string;
- /** Type of token, always `bearer`. */
- token_type: 'bearer';
- /** Number of seconds in which the access token will expire. */
- expires_in: number;
- /** Refresh token you can use to obtain new access tokens when expired. */
- refresh_token: string;
- /** Updated user profile. */
- user: User;
-};
-/**
- * Response type for MFA verification operations.
- * Returns session tokens on successful verification.
- */
-export type AuthMFAVerifyResponse = RequestResult;
-export type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse | AuthMFAEnrollWebauthnResponse;
-export type AuthMFAUnenrollResponse = RequestResult<{
- /** ID of the factor that was successfully unenrolled. */
- id: string;
-}>;
-type AuthMFAChallengeResponseBase = {
- /** ID of the newly created challenge. */
- id: string;
- /** Factor Type which generated the challenge */
- type: T;
- /** Timestamp in UNIX seconds when this challenge will no longer be usable. */
- expires_at: number;
-};
-type AuthMFAChallengeTOTPResponseFields = {};
-export type AuthMFAChallengeTOTPResponse = RequestResult & AuthMFAChallengeTOTPResponseFields>;
-type AuthMFAChallengePhoneResponseFields = {};
-export type AuthMFAChallengePhoneResponse = RequestResult & AuthMFAChallengePhoneResponseFields>;
-type AuthMFAChallengeWebauthnResponseFields = {
- webauthn: {
- type: 'create';
- credential_options: {
- publicKey: PublicKeyCredentialCreationOptionsFuture;
- };
- } | {
- type: 'request';
- credential_options: {
- publicKey: PublicKeyCredentialRequestOptionsFuture;
- };
- };
-};
-/**
- * Response type for WebAuthn MFA challenge.
- * Contains credential creation or request options from the server.
- * @see {@link https://w3c.github.io/webauthn/#sctn-credential-creation W3C WebAuthn Spec - Credential Creation}
- */
-export type AuthMFAChallengeWebauthnResponse = RequestResult & AuthMFAChallengeWebauthnResponseFields>;
-type AuthMFAChallengeWebauthnResponseFieldsJSON = {
- webauthn: {
- type: 'create';
- credential_options: {
- publicKey: ServerCredentialCreationOptions;
- };
- } | {
- type: 'request';
- credential_options: {
- publicKey: ServerCredentialRequestOptions;
- };
- };
-};
-/**
- * JSON-serializable version of WebAuthn challenge response.
- * Used for server communication with base64url-encoded binary fields.
- */
-export type AuthMFAChallengeWebauthnResponseDataJSON = AuthMFAChallengeResponseBase<'webauthn'> & AuthMFAChallengeWebauthnResponseFieldsJSON;
-/**
- * Server response type for WebAuthn MFA challenge.
- * Contains JSON-formatted WebAuthn options ready for browser API.
- */
-export type AuthMFAChallengeWebauthnServerResponse = RequestResult;
-export type AuthMFAChallengeResponse = AuthMFAChallengeTOTPResponse | AuthMFAChallengePhoneResponse | AuthMFAChallengeWebauthnResponse;
-/** response of ListFactors, which should contain all the types of factors that are available, this ensures we always include all */
-export type AuthMFAListFactorsResponse = RequestResult<{
- /** All available factors (verified and unverified). */
- all: Factor[];
-} & {
- [K in T[number]]: Factor[];
-}>;
-export type AuthenticatorAssuranceLevels = 'aal1' | 'aal2' | (string & {});
-export type AuthMFAGetAuthenticatorAssuranceLevelResponse = RequestResult<{
- /** Current AAL level of the session. */
- currentLevel: AuthenticatorAssuranceLevels | null;
- /**
- * Next possible AAL level for the session. If the next level is higher
- * than the current one, the user should go through MFA.
- *
- * @see {@link GoTrueMFAApi#challenge}
- */
- nextLevel: AuthenticatorAssuranceLevels | null;
- /**
- * A list of all authentication methods attached to this session. Use
- * the information here to detect the last time a user verified a
- * factor, for example if implementing a step-up scenario.
- *
- * Supports both RFC-8176 compliant format (string[]) and detailed format (AMREntry[]).
- * - String format: ['password', 'otp'] - RFC-8176 compliant
- * - Object format: [{ method: 'password', timestamp: 1234567890 }] - includes timestamps
- */
- currentAuthenticationMethods: AMREntry[] | string[];
-}>;
-/**
- * Contains the full multi-factor authentication API.
- *
- */
-export interface GoTrueMFAApi {
- /**
- * Starts the enrollment process for a new Multi-Factor Authentication (MFA)
- * factor. This method creates a new `unverified` factor.
- * To verify a factor, present the QR code or secret to the user and ask them to add it to their
- * authenticator app.
- * The user has to enter the code from their authenticator app to verify it.
- *
- * Upon verifying a factor, all other sessions are logged out and the current session's authenticator level is promoted to `aal2`.
- *
- * @category Auth
- * @subcategory Auth MFA
- *
- * @remarks
- * - Use `totp` or `phone` as the `factorType` and use the returned `id` to create a challenge.
- * - To create a challenge, see [`mfa.challenge()`](/docs/reference/javascript/auth-mfa-challenge).
- * - To verify a challenge, see [`mfa.verify()`](/docs/reference/javascript/auth-mfa-verify).
- * - To create and verify a TOTP challenge in a single step, see [`mfa.challengeAndVerify()`](/docs/reference/javascript/auth-mfa-challengeandverify).
- * - To generate a QR code for the `totp` secret in Next.js, you can do the following:
- * ```html
- *
- * ```
- * - The `challenge` and `verify` steps are separated when using Phone factors as the user will need time to receive and input the code obtained from the SMS in challenge.
- *
- * @example Enroll a time-based, one-time password (TOTP) factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.enroll({
- * factorType: 'totp',
- * friendlyName: 'your_friendly_name'
- * })
- *
- * // Use the id to create a challenge.
- * // The challenge can be verified by entering the code generated from the authenticator app.
- * // The code will be generated upon scanning the qr_code or entering the secret into the authenticator app.
- * const { id, type, totp: { qr_code, secret, uri }, friendly_name } = data
- * const challenge = await supabase.auth.mfa.challenge({ factorId: id });
- * ```
- *
- * @exampleResponse Enroll a time-based, one-time password (TOTP) factor
- * ```json
- * {
- * data: {
- * id: '',
- * type: 'totp'
- * totp: {
- * qr_code: '',
- * secret: '',
- * uri: '',
- * }
- * friendly_name?: 'Important app'
- * },
- * error: null
- * }
- * ```
- *
- * @example Enroll a Phone Factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.enroll({
- * factorType: 'phone',
- * friendlyName: 'your_friendly_name',
- * phone: '+12345678',
- * })
- *
- * // Use the id to create a challenge and send an SMS with a code to the user.
- * const { id, type, friendly_name, phone } = data
- *
- * const challenge = await supabase.auth.mfa.challenge({ factorId: id });
- * ```
- *
- * @exampleResponse Enroll a Phone Factor
- * ```json
- * {
- * data: {
- * id: '',
- * type: 'phone',
- * friendly_name?: 'Important app',
- * phone: '+5787123456'
- * },
- * error: null
- * }
- * ```
- */
- enroll(params: MFAEnrollTOTPParams): Promise;
- enroll(params: MFAEnrollPhoneParams): Promise;
- enroll(params: MFAEnrollWebauthnParams): Promise;
- enroll(params: MFAEnrollParams): Promise;
- /**
- * Prepares a challenge used to verify that a user has access to a MFA
- * factor.
- *
- * @category Auth
- * @subcategory Auth MFA
- *
- * @remarks
- * - An [enrolled factor](/docs/reference/javascript/auth-mfa-enroll) is required before creating a challenge.
- * - To verify a challenge, see [`mfa.verify()`](/docs/reference/javascript/auth-mfa-verify).
- * - A phone factor sends a code to the user upon challenge. The channel defaults to `sms` unless otherwise specified.
- *
- * @example Create a challenge for a factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.challenge({
- * factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225'
- * })
- * ```
- *
- * @exampleResponse Create a challenge for a factor
- * ```json
- * {
- * data: {
- * id: '',
- * type: 'totp',
- * expires_at: 1700000000
- * },
- * error: null
- * }
- * ```
- *
- * @example Create a challenge for a phone factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.challenge({
- * factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
- * })
- * ```
- *
- * @exampleResponse Create a challenge for a phone factor
- * ```json
- * {
- * data: {
- * id: '',
- * type: 'phone',
- * expires_at: 1700000000
- * },
- * error: null
- * }
- * ```
- *
- * @example Create a challenge for a phone factor (WhatsApp)
- * ```js
- * const { data, error } = await supabase.auth.mfa.challenge({
- * factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
- * channel: 'whatsapp',
- * })
- * ```
- *
- * @exampleResponse Create a challenge for a phone factor (WhatsApp)
- * ```json
- * {
- * data: {
- * id: '',
- * expires_at: 1700000000
- * },
- * error: null
- * }
- * ```
- */
- challenge(params: MFAChallengeTOTPParams): Promise>;
- challenge(params: MFAChallengePhoneParams): Promise>;
- challenge(params: MFAChallengeWebauthnParams): Promise>;
- challenge(params: MFAChallengeParams): Promise;
- /**
- * Verifies a code against a challenge. The verification code is
- * provided by the user by entering a code seen in their authenticator app.
- *
- * @category Auth
- * @subcategory Auth MFA
- *
- * @remarks
- * - To verify a challenge, please [create a challenge](/docs/reference/javascript/auth-mfa-challenge) first.
- *
- * @example Verify a challenge for a factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.verify({
- * factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
- * challengeId: '4034ae6f-a8ce-4fb5-8ee5-69a5863a7c15',
- * code: '123456'
- * })
- * ```
- *
- * @exampleResponse Verify a challenge for a factor
- * ```json
- * {
- * data: {
- * access_token: '',
- * token_type: 'Bearer',
- * expires_in: 3600,
- * refresh_token: '',
- * user: {
- * id: '11111111-1111-1111-1111-111111111111',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {
- * provider: 'email',
- * providers: [
- * "email",
- * ]
- * },
- * user_metadata: {},
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false,
- * factors: [
- * "id": '',
- * "friendly_name": 'Important Auth App',
- * "factor_type": 'totp',
- * "status": 'verified',
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * ]
- * }
- * }
- * error: null
- * }
- * ```
- */
- verify(params: MFAVerifyTOTPParams): Promise;
- verify(params: MFAVerifyPhoneParams): Promise;
- verify(params: MFAVerifyWebauthnParams): Promise;
- verify(params: MFAVerifyParams): Promise;
- /**
- * Unenroll removes a MFA factor.
- * A user has to have an `aal2` authenticator level in order to unenroll a `verified` factor.
- *
- * @category Auth
- * @subcategory Auth MFA
- *
- * @example Unenroll a factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.unenroll({
- * factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
- * })
- * ```
- *
- * @exampleResponse Unenroll a factor
- * ```json
- * {
- * data: {
- * id: ''
- * },
- * error: null
- * }
- * ```
- */
- unenroll(params: MFAUnenrollParams): Promise;
- /**
- * Helper method which creates a challenge and immediately uses the given code to verify against it thereafter. The verification code is
- * provided by the user by entering a code seen in their authenticator app.
- *
- * @category Auth
- * @subcategory Auth MFA
- *
- * @remarks
- * - Intended for use with only TOTP factors.
- * - An [enrolled factor](/docs/reference/javascript/auth-mfa-enroll) is required before invoking `challengeAndVerify()`.
- * - Executes [`mfa.challenge()`](/docs/reference/javascript/auth-mfa-challenge) and [`mfa.verify()`](/docs/reference/javascript/auth-mfa-verify) in a single step.
- *
- * @example Create and verify a challenge for a factor
- * ```js
- * const { data, error } = await supabase.auth.mfa.challengeAndVerify({
- * factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
- * code: '123456'
- * })
- * ```
- *
- * @exampleResponse Create and verify a challenge for a factor
- * ```json
- * {
- * data: {
- * access_token: '',
- * token_type: 'Bearer',
- * expires_in: 3600,
- * refresh_token: '',
- * user: {
- * id: '11111111-1111-1111-1111-111111111111',
- * aud: 'authenticated',
- * role: 'authenticated',
- * email: 'example@email.com',
- * email_confirmed_at: '2024-01-01T00:00:00Z',
- * phone: '',
- * confirmation_sent_at: '2024-01-01T00:00:00Z',
- * confirmed_at: '2024-01-01T00:00:00Z',
- * last_sign_in_at: '2024-01-01T00:00:00Z',
- * app_metadata: {
- * provider: 'email',
- * providers: [
- * "email",
- * ]
- * },
- * user_metadata: {},
- * identities: [
- * {
- * "identity_id": "22222222-2222-2222-2222-222222222222",
- * "id": "11111111-1111-1111-1111-111111111111",
- * "user_id": "11111111-1111-1111-1111-111111111111",
- * "identity_data": {
- * "email": "example@email.com",
- * "email_verified": true,
- * "phone_verified": false,
- * "sub": "11111111-1111-1111-1111-111111111111"
- * },
- * "provider": "email",
- * "last_sign_in_at": "2024-01-01T00:00:00Z",
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z",
- * "email": "email@example.com"
- * },
- * ],
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z',
- * is_anonymous: false,
- * factors: [
- * "id": '',
- * "friendly_name": 'Important Auth App',
- * "factor_type": 'totp',
- * "status": 'verified',
- * "created_at": "2024-01-01T00:00:00Z",
- * "updated_at": "2024-01-01T00:00:00Z"
- * ]
- * }
- * }
- * error: null
- * }
- * ```
- */
- challengeAndVerify(params: MFAChallengeAndVerifyParams): Promise;
- /**
- * Returns the list of MFA factors enabled for this user.
- *
- * @see {@link GoTrueMFAApi#enroll}
- * @see {@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}
- * @see {@link GoTrueClient#getUser}
- *
- *
- * @category Auth
- * @subcategory Auth MFA
- */
- listFactors(): Promise;
- /**
- * Returns the Authenticator Assurance Level (AAL) for the active session.
- *
- * - `aal1` (or `null`) means that the user's identity has been verified only
- * with a conventional login (email+password, OTP, magic link, social login,
- * etc.).
- * - `aal2` means that the user's identity has been verified both with a conventional login and at least one MFA factor.
- *
- * When called without a JWT parameter, this method is fairly quick (microseconds)
- * and rarely uses the network. When a JWT is provided (useful in server-side
- * environments like Edge Functions where no session is stored), this method
- * will make a network request to validate the user and fetch their MFA factors.
- *
- * @param jwt Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.
- *
- * @category Auth
- * @subcategory Auth MFA
- *
- * @remarks
- * - Authenticator Assurance Level (AAL) is the measure of the strength of an authentication mechanism.
- * - In Supabase, having an AAL of `aal1` refers to having the 1st factor of authentication such as an email and password or OAuth sign-in while `aal2` refers to the 2nd factor of authentication such as a time-based, one-time-password (TOTP) or Phone factor.
- * - If the user has a verified factor, the `nextLevel` field will return `aal2`, else, it will return `aal1`.
- * - An optional `jwt` parameter can be passed to check the AAL level of a specific JWT instead of the current session.
- *
- * @example Get the AAL details of a session
- * ```js
- * const { data, error } = await supabase.auth.mfa.getAuthenticatorAssuranceLevel()
- * const { currentLevel, nextLevel, currentAuthenticationMethods } = data
- * ```
- *
- * @exampleResponse Get the AAL details of a session
- * ```json
- * {
- * data: {
- * currentLevel: 'aal1',
- * nextLevel: 'aal2',
- * currentAuthenticationMethods: [
- * {
- * method: 'password',
- * timestamp: 1700000000
- * }
- * ]
- * }
- * error: null
- * }
- * ```
- *
- * @example Get the AAL details for a specific JWT
- * ```js
- * const { data, error } = await supabase.auth.mfa.getAuthenticatorAssuranceLevel(jwt)
- * ```
- */
- getAuthenticatorAssuranceLevel(jwt?: string): Promise;
- webauthn: WebAuthnApi;
-}
-/**
- * @expermental
- */
-export type AuthMFAAdminDeleteFactorResponse = RequestResult<{
- /** ID of the factor that was successfully deleted. */
- id: string;
-}>;
-/**
- * @expermental
- */
-export type AuthMFAAdminDeleteFactorParams = {
- /** ID of the MFA factor to delete. */
- id: string;
- /** ID of the user whose factor is being deleted. */
- userId: string;
-};
-/**
- * @expermental
- */
-export type AuthMFAAdminListFactorsResponse = RequestResult<{
- /** All factors attached to the user. */
- factors: Factor[];
-}>;
-/**
- * @expermental
- */
-export type AuthMFAAdminListFactorsParams = {
- /** ID of the user. */
- userId: string;
-};
-/**
- * Contains the full multi-factor authentication administration API.
- *
- * @expermental
- */
-export interface GoTrueAdminMFAApi {
- /**
- * Lists all factors associated to a user.
- *
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @example List all factors for a user
- * ```js
- * const { data, error } = await supabase.auth.admin.mfa.listFactors()
- * ```
- *
- * @exampleResponse List all factors for a user
- * ```json
- * {
- * data: {
- * factors: Factor[
- * {
- * id: '',
- * friendly_name: 'Auth App Factor',
- * factor_type: 'totp',
- * status: 'verified',
- * created_at: '2024-01-01T00:00:00Z',
- * updated_at: '2024-01-01T00:00:00Z'
- * }
- * ]
- * },
- * error: null
- * }
- * ```
- */
- listFactors(params: AuthMFAAdminListFactorsParams): Promise;
- /**
- * Deletes a factor on a user. This will log the user out of all active
- * sessions if the deleted factor was verified.
- *
- * @see {@link GoTrueMFAApi#unenroll}
- *
- * @expermental
- *
- * @category Auth
- * @subcategory Auth Admin
- *
- * @example Delete a factor for a user
- * ```js
- * const { data, error } = await supabase.auth.admin.mfa.deleteFactor({
- * id: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
- * userId: 'a89baba7-b1b7-440f-b4bb-91026967f66b',
- * })
- * ```
- *
- * @exampleResponse Delete a factor for a user
- * ```json
- * {
- * data: {
- * id: '34e770dd-9ff9-416c-87fa-43b31d7ef225'
- * },
- * error: null
- * }
- * ```
- */
- deleteFactor(params: AuthMFAAdminDeleteFactorParams): Promise;
-}
-type AnyFunction = (...args: any[]) => any;
-type MaybePromisify = T | Promise;
-type PromisifyMethods = {
- [K in keyof T]: T[K] extends AnyFunction ? (...args: Parameters) => MaybePromisify> : T[K];
-};
-export type SupportedStorage = PromisifyMethods> & {
- /**
- * If set to `true` signals to the library that the storage medium is used
- * on a server and the values may not be authentic, such as reading from
- * request cookies. Implementations should not set this to true if the client
- * is used on a server that reads storage information from authenticated
- * sources, such as a secure database or file.
- */
- isServer?: boolean;
-};
-export type InitializeResult = {
- error: AuthError | null;
-};
-export type CallRefreshTokenResult = RequestResult;
-export type Pagination = {
- [key: string]: any;
- nextPage: number | null;
- lastPage: number;
- total: number;
-};
-export type PageParams = {
- /** The page number */
- page?: number;
- /** Number of items returned per page */
- perPage?: number;
-};
-export type SignOut = {
- /**
- * Determines which sessions should be
- * logged out. Global means all
- * sessions by this account. Local
- * means only this session. Others
- * means all other sessions except the
- * current one. When using others,
- * there is no sign-out event fired on
- * the current session!
- */
- scope?: 'global' | 'local' | 'others';
-};
-type MFAEnrollParamsBase = {
- /** The type of factor being enrolled. */
- factorType: T;
- /** Human readable name assigned to the factor. */
- friendlyName?: string;
-};
-type MFAEnrollTOTPParamFields = {
- /** Domain which the user is enrolled with. */
- issuer?: string;
-};
-export type MFAEnrollTOTPParams = MFAEnrollParamsBase<'totp'> & MFAEnrollTOTPParamFields;
-type MFAEnrollPhoneParamFields = {
- /** Phone number associated with a factor. Number should conform to E.164 format */
- phone: string;
-};
-export type MFAEnrollPhoneParams = MFAEnrollParamsBase<'phone'> & MFAEnrollPhoneParamFields;
-type MFAEnrollWebauthnFields = {};
-/**
- * Parameters for enrolling a WebAuthn factor.
- * Creates an unverified WebAuthn factor that must be verified with a credential.
- * @see {@link https://w3c.github.io/webauthn/#sctn-registering-a-new-credential W3C WebAuthn Spec - Registering a New Credential}
- */
-export type MFAEnrollWebauthnParams = MFAEnrollParamsBase<'webauthn'> & MFAEnrollWebauthnFields;
-type AuthMFAEnrollResponseBase = {
- /** ID of the factor that was just enrolled (in an unverified state). */
- id: string;
- /** Type of MFA factor.*/
- type: T;
- /** Friendly name of the factor, useful for distinguishing between factors **/
- friendly_name?: string;
-};
-type AuthMFAEnrollTOTPResponseFields = {
- /** TOTP enrollment information. */
- totp: {
- /** Contains a QR code encoding the authenticator URI. You can
- * convert it to a URL by prepending `data:image/svg+xml;utf-8,` to
- * the value. Avoid logging this value to the console. */
- qr_code: string;
- /** The TOTP secret (also encoded in the QR code). Show this secret
- * in a password-style field to the user, in case they are unable to
- * scan the QR code. Avoid logging this value to the console. */
- secret: string;
- /** The authenticator URI encoded within the QR code, should you need
- * to use it. Avoid loggin this value to the console. */
- uri: string;
- };
-};
-export type AuthMFAEnrollTOTPResponse = RequestResult & AuthMFAEnrollTOTPResponseFields>;
-type AuthMFAEnrollPhoneResponseFields = {
- /** Phone number of the MFA factor in E.164 format. Used to send messages */
- phone: string;
-};
-export type AuthMFAEnrollPhoneResponse = RequestResult & AuthMFAEnrollPhoneResponseFields>;
-type AuthMFAEnrollWebauthnFields = {};
-/**
- * Response type for WebAuthn factor enrollment.
- * Returns the enrolled factor ID and metadata.
- * @see {@link https://w3c.github.io/webauthn/#sctn-registering-a-new-credential W3C WebAuthn Spec - Registering a New Credential}
- */
-export type AuthMFAEnrollWebauthnResponse = RequestResult & AuthMFAEnrollWebauthnFields>;
-export type JwtHeader = {
- alg: 'RS256' | 'ES256' | 'HS256' | (string & {});
- kid: string;
- typ: string;
-};
-export type RequiredClaims = {
- iss: string;
- sub: string;
- aud: string | string[];
- exp: number;
- iat: number;
- role: string;
- aal: AuthenticatorAssuranceLevels;
- session_id: string;
-};
-/**
- * JWT Payload containing claims for Supabase authentication tokens.
- *
- * Required claims (iss, aud, exp, iat, sub, role, aal, session_id) are inherited from RequiredClaims.
- * All other claims are optional as they can be customized via Custom Access Token Hooks.
- *
- * @see https://supabase.com/docs/guides/auth/jwt-fields
- */
-export interface JwtPayload extends RequiredClaims {
- email?: string;
- phone?: string;
- is_anonymous?: boolean;
- jti?: string;
- nbf?: number;
- app_metadata?: UserAppMetadata;
- user_metadata?: UserMetadata;
- /**
- * Authentication Method References.
- * Supports both RFC-8176 compliant format (string[]) and detailed format (AMREntry[]).
- * - String format: ['password', 'otp'] - RFC-8176 compliant
- * - Object format: [{ method: 'password', timestamp: 1234567890 }] - includes timestamps
- */
- amr?: AMREntry[] | string[];
- ref?: string;
- [key: string]: any;
-}
-export interface JWK {
- kty: 'RSA' | 'EC' | 'oct' | (string & {});
- key_ops: string[];
- alg?: string;
- kid?: string;
- [key: string]: any;
-}
-export declare const SIGN_OUT_SCOPES: readonly ["global", "local", "others"];
-export type SignOutScope = (typeof SIGN_OUT_SCOPES)[number];
-/**
- * OAuth client grant types supported by the OAuth 2.1 server.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientGrantType = 'authorization_code' | 'refresh_token' | (string & {});
-/**
- * OAuth client response types supported by the OAuth 2.1 server.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientResponseType = 'code';
-/**
- * OAuth client type indicating whether the client can keep credentials confidential.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientType = 'public' | 'confidential';
-/**
- * OAuth client registration type.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientRegistrationType = 'dynamic' | 'manual';
-/**
- * OAuth client token endpoint authentication method.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientTokenEndpointAuthMethod = 'none' | 'client_secret_basic' | 'client_secret_post';
-/**
- * OAuth client object returned from the OAuth 2.1 server.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClient = {
- /** Unique identifier for the OAuth client */
- client_id: string;
- /** Human-readable name of the OAuth client */
- client_name: string;
- /** Client secret (only returned on registration and regeneration) */
- client_secret?: string;
- /** Type of OAuth client */
- client_type: OAuthClientType;
- /** Token endpoint authentication method */
- token_endpoint_auth_method: OAuthClientTokenEndpointAuthMethod;
- /** Registration type of the client */
- registration_type: OAuthClientRegistrationType;
- /** URI of the OAuth client */
- client_uri?: string;
- /** URI of the OAuth client's logo */
- logo_uri?: string;
- /** Array of allowed redirect URIs */
- redirect_uris: string[];
- /** Array of allowed grant types */
- grant_types: OAuthClientGrantType[];
- /** Array of allowed response types */
- response_types: OAuthClientResponseType[];
- /** Scope of the OAuth client */
- scope?: string;
- /** Timestamp when the client was created */
- created_at: string;
- /** Timestamp when the client was last updated */
- updated_at: string;
-};
-/**
- * Parameters for creating a new OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type CreateOAuthClientParams = {
- /** Human-readable name of the OAuth client */
- client_name: string;
- /** URI of the OAuth client */
- client_uri?: string;
- /** Array of allowed redirect URIs */
- redirect_uris: string[];
- /** Array of allowed grant types (optional, defaults to authorization_code and refresh_token) */
- grant_types?: OAuthClientGrantType[];
- /** Array of allowed response types (optional, defaults to code) */
- response_types?: OAuthClientResponseType[];
- /** Scope of the OAuth client */
- scope?: string;
- /** Token endpoint authentication method (defaults to server default if not specified) */
- token_endpoint_auth_method?: OAuthClientTokenEndpointAuthMethod;
-};
-/**
- * Parameters for updating an existing OAuth client.
- * All fields are optional. Only provided fields will be updated.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type UpdateOAuthClientParams = {
- /** Human-readable name of the OAuth client */
- client_name?: string;
- /** URI of the OAuth client */
- client_uri?: string;
- /** URI of the OAuth client's logo */
- logo_uri?: string;
- /** Array of allowed redirect URIs */
- redirect_uris?: string[];
- /** Array of allowed grant types */
- grant_types?: OAuthClientGrantType[];
- /** Token endpoint authentication method */
- token_endpoint_auth_method?: OAuthClientTokenEndpointAuthMethod;
-};
-/**
- * Response type for OAuth client operations.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientResponse = RequestResult;
-/**
- * Response type for listing OAuth clients.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthClientListResponse = {
- data: {
- clients: OAuthClient[];
- aud: string;
- } & Pagination;
- error: null;
-} | {
- data: {
- clients: [];
- };
- error: AuthError;
-};
-/**
- * Contains all OAuth client administration methods.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export interface GoTrueAdminOAuthApi {
- /**
- * Lists all OAuth clients with optional pagination.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory OAuth Admin
- */
- listClients(params?: PageParams): Promise;
- /**
- * Creates a new OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory OAuth Admin
- */
- createClient(params: CreateOAuthClientParams): Promise;
- /**
- * Gets details of a specific OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory OAuth Admin
- */
- getClient(clientId: string): Promise;
- /**
- * Updates an existing OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory OAuth Admin
- */
- updateClient(clientId: string, params: UpdateOAuthClientParams): Promise;
- /**
- * Deletes an OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory OAuth Admin
- */
- deleteClient(clientId: string): Promise<{
- data: null;
- error: AuthError | null;
- }>;
- /**
- * Regenerates the secret for an OAuth client.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory OAuth Admin
- */
- regenerateClientSecret(clientId: string): Promise;
-}
-/**
- * Type of custom identity provider.
- */
-export type CustomProviderType = 'oauth2' | 'oidc';
-/**
- * OIDC discovery document fields.
- * Populated when the server successfully fetches and validates the
- * provider's OpenID Connect discovery document.
- */
-export type OIDCDiscoveryDocument = {
- /** The issuer identifier */
- issuer: string;
- /** URL of the authorization endpoint */
- authorization_endpoint: string;
- /** URL of the token endpoint */
- token_endpoint: string;
- /** URL of the JSON Web Key Set */
- jwks_uri: string;
- /** URL of the userinfo endpoint */
- userinfo_endpoint?: string;
- /** URL of the revocation endpoint */
- revocation_endpoint?: string;
- /** List of supported scopes */
- supported_scopes?: string[];
- /** List of supported response types */
- supported_response_types?: string[];
- /** List of supported subject types */
- supported_subject_types?: string[];
- /** List of supported ID token signing algorithms */
- supported_id_token_signing_algs?: string[];
-};
-/**
- * Custom OAuth/OIDC provider object returned from the admin API.
- */
-export type CustomOAuthProvider = {
- /** Unique identifier (UUID) */
- id: string;
- /** Provider type */
- provider_type: CustomProviderType;
- /** Provider identifier (e.g. `custom:mycompany`) */
- identifier: string;
- /** Human-readable name */
- name: string;
- /** OAuth client ID */
- client_id: string;
- /** Additional client IDs accepted during token validation */
- acceptable_client_ids?: string[];
- /** OAuth scopes requested during authorization */
- scopes?: string[];
- /** Whether PKCE is enabled */
- pkce_enabled?: boolean;
- /** Mapping of provider attributes to Supabase user attributes */
- attribute_mapping?: Record;
- /** Additional parameters sent with the authorization request */
- authorization_params?: Record;
- /** Whether the provider is enabled */
- enabled?: boolean;
- /** Whether email is optional for this provider */
- email_optional?: boolean;
- /** OIDC issuer URL */
- issuer?: string;
- /** OIDC discovery URL */
- discovery_url?: string;
- /** Whether to skip nonce check (OIDC) */
- skip_nonce_check?: boolean;
- /** OAuth2 authorization URL */
- authorization_url?: string;
- /** OAuth2 token URL */
- token_url?: string;
- /** OAuth2 userinfo URL */
- userinfo_url?: string;
- /** JWKS URI for token verification */
- jwks_uri?: string;
- /** OIDC discovery document (OIDC providers only) */
- discovery_document?: OIDCDiscoveryDocument | null;
- /** Timestamp when the provider was created */
- created_at: string;
- /** Timestamp when the provider was last updated */
- updated_at: string;
-};
-/**
- * Parameters for creating a new custom provider.
- */
-export type CreateCustomProviderParams = {
- /** Provider type */
- provider_type: CustomProviderType;
- /** Provider identifier (e.g. `custom:mycompany`) */
- identifier: string;
- /** Human-readable name */
- name: string;
- /** OAuth client ID */
- client_id: string;
- /** OAuth client secret (write-only, not returned in responses) */
- client_secret: string;
- /** Additional client IDs accepted during token validation */
- acceptable_client_ids?: string[];
- /** OAuth scopes requested during authorization */
- scopes?: string[];
- /** Whether PKCE is enabled */
- pkce_enabled?: boolean;
- /** Mapping of provider attributes to Supabase user attributes */
- attribute_mapping?: Record;
- /** Additional parameters sent with the authorization request */
- authorization_params?: Record;
- /** Whether the provider is enabled */
- enabled?: boolean;
- /** Whether email is optional for this provider */
- email_optional?: boolean;
- /** OIDC issuer URL */
- issuer?: string;
- /** OIDC discovery URL */
- discovery_url?: string;
- /** Whether to skip nonce check (OIDC) */
- skip_nonce_check?: boolean;
- /** OAuth2 authorization URL */
- authorization_url?: string;
- /** OAuth2 token URL */
- token_url?: string;
- /** OAuth2 userinfo URL */
- userinfo_url?: string;
- /** JWKS URI for token verification */
- jwks_uri?: string;
-};
-/**
- * Parameters for updating an existing custom provider.
- * All fields are optional. Only provided fields will be updated.
- * `provider_type` and `identifier` are immutable and cannot be changed.
- */
-export type UpdateCustomProviderParams = {
- /** Human-readable name */
- name?: string;
- /** OAuth client ID */
- client_id?: string;
- /** OAuth client secret (write-only, not returned in responses) */
- client_secret?: string;
- /** Additional client IDs accepted during token validation */
- acceptable_client_ids?: string[];
- /** OAuth scopes requested during authorization */
- scopes?: string[];
- /** Whether PKCE is enabled */
- pkce_enabled?: boolean;
- /** Mapping of provider attributes to Supabase user attributes */
- attribute_mapping?: Record;
- /** Additional parameters sent with the authorization request */
- authorization_params?: Record;
- /** Whether the provider is enabled */
- enabled?: boolean;
- /** Whether email is optional for this provider */
- email_optional?: boolean;
- /** OIDC issuer URL */
- issuer?: string;
- /** OIDC discovery URL */
- discovery_url?: string;
- /** Whether to skip nonce check (OIDC) */
- skip_nonce_check?: boolean;
- /** OAuth2 authorization URL */
- authorization_url?: string;
- /** OAuth2 token URL */
- token_url?: string;
- /** OAuth2 userinfo URL */
- userinfo_url?: string;
- /** JWKS URI for token verification */
- jwks_uri?: string;
-};
-/**
- * Parameters for listing custom providers.
- */
-export type ListCustomProvidersParams = {
- /** Filter by provider type */
- type?: CustomProviderType;
-};
-/**
- * Response type for custom provider operations.
- */
-export type CustomProviderResponse = RequestResult;
-/**
- * Response type for listing custom providers.
- */
-export type CustomProviderListResponse = {
- data: {
- providers: CustomOAuthProvider[];
- };
- error: null;
-} | {
- data: {
- providers: [];
- };
- error: AuthError;
-};
-/**
- * Contains all custom OIDC/OAuth provider administration methods.
- */
-export interface GoTrueAdminCustomProvidersApi {
- /**
- * Lists all custom providers with optional type filter.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- listProviders(params?: ListCustomProvidersParams): Promise;
- /**
- * Creates a new custom OIDC/OAuth provider.
- *
- * For OIDC providers, the server fetches and validates the OpenID Connect discovery document
- * from the issuer's well-known endpoint (or the provided `discovery_url`) at creation time.
- * This may return a validation error (`error_code: "validation_failed"`) if the discovery
- * document is unreachable, not valid JSON, missing required fields, or if the issuer
- * in the document does not match the expected issuer.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- createProvider(params: CreateCustomProviderParams): Promise;
- /**
- * Gets details of a specific custom provider by identifier.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- getProvider(identifier: string): Promise;
- /**
- * Updates an existing custom provider.
- *
- * When `issuer` or `discovery_url` is changed on an OIDC provider, the server re-fetches and
- * validates the discovery document before persisting. This may return a validation error
- * (`error_code: "validation_failed"`) if the discovery document is unreachable, invalid, or
- * the issuer does not match.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- updateProvider(identifier: string, params: UpdateCustomProviderParams): Promise;
- /**
- * Deletes a custom provider.
- *
- * This function should only be called on a server. Never expose your `service_role` key in the browser.
- *
- * @category Auth
- * @subcategory Auth Admin
- */
- deleteProvider(identifier: string): Promise<{
- data: null;
- error: AuthError | null;
- }>;
-}
-/**
- * OAuth client details in an authorization request.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- */
-export type OAuthAuthorizationClient = {
- /** Unique identifier for the OAuth client (UUID) */
- id: string;
- /** Human-readable name of the OAuth client */
- name: string;
- /** URI of the OAuth client's website */
- uri: string;
- /** URI of the OAuth client's logo */
- logo_uri: string;
-};
-/**
- * OAuth authorization details when user needs to provide consent.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This response includes all information needed to display a consent page:
- * client details, user info, requested scopes, and where the user will be redirected.
- *
- * Note: `redirect_uri` is the base URI (e.g., "https://app.com/callback") without
- * query parameters. After consent, you'll receive a complete `redirect_url` with
- * the authorization code and state parameters appended.
- */
-export type OAuthAuthorizationDetails = {
- /** The authorization ID used to approve or deny the request */
- authorization_id: string;
- /** The OAuth client's registered redirect URI (base URI without query parameters) */
- redirect_uri: string;
- /** OAuth client requesting authorization */
- client: OAuthAuthorizationClient;
- /** User object associated with the authorization */
- user: {
- /** User ID (UUID) */
- id: string;
- /** User email */
- email: string;
- };
- /** Space-separated list of requested scopes (e.g., "openid profile email") */
- scope: string;
-};
-/**
- * OAuth redirect response when user has already consented or after consent decision.
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * This response is returned in three scenarios:
- * 1. User already consented to these scopes (auto-approved)
- * 2. User just approved the authorization request
- * 3. User just denied the authorization request
- *
- * The `redirect_url` is a complete URL ready for redirecting the user back to the
- * OAuth client, including authorization code (on success) or error (on denial) in
- * query parameters, along with the state parameter if one was provided.
- */
-export type OAuthRedirect = {
- /** Complete redirect URL with authorization code and state parameters (e.g., "https://app.com/callback?code=xxx&state=yyy") */
- redirect_url: string;
-};
-/**
- * Response type for getting OAuth authorization details.
- * Returns either full authorization details (if consent needed) or redirect URL (if already consented).
- * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- *
- * @example
- * ```typescript
- * const { data, error } = await supabase.auth.oauth.getAuthorizationDetails(authorizationId)
- *
- * if (error) {
- * console.error('Error:', error)
- * } else if ('authorization_id' in data) {
- * // User needs to provide consent - show consent page
- * console.log('Client:', data.client.name)
- * console.log('Scopes:', data.scope)
- * console.log('Redirect URI:', data.redirect_uri)
- * } else {
- * // User already consented - redirect immediately
- * window.location.href = data.redirect_url
- * }
- * ```
- */
-export type AuthOAuthAuthorizationDetailsResponse = RequestResult