feat: working user auth on deployment #1
@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "deno task dev:api & deno task dev:vite",
|
"dev": "deno task dev:api & deno task dev:vite",
|
||||||
"dev:api": "deno run --allow-env --allow-read --allow-net api/main.ts",
|
"dev:api": "deno run --allow-env --allow-read --allow-net api/main.ts",
|
||||||
"dev:vite": "deno run -A npm:vite",
|
"dev:vite": "deno run -A npm:vite --host",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"serve": "deno task build && deno task dev:api",
|
"serve": "deno task build && deno task dev:api",
|
||||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export default function Index() {
|
|||||||
|
|
||||||
const handleLogin = async () => {
|
const handleLogin = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("http://localhost:8000/auth/login");
|
const response = await fetch("/auth/login");
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Failed to fetch authorization URL");
|
throw new Error("Failed to fetch authorization URL");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user