fix: return proper token response from casdoor-callback API route + remove hardcoded secret

This commit is contained in:
2026-06-30 01:14:42 +02:00
parent 4951f7f9e2
commit 03e0d5dc60
8 changed files with 146 additions and 60 deletions
+7 -1
View File
@@ -21,6 +21,12 @@
to = "/mobile/auth/callback"
status = 200
# API routes need basePath prefix rewrite
[[redirects]]
from = "/api/*"
to = "/mobile/api/:splat"
status = 200
# Everything else handled by Next.js plugin
[[redirects]]
from = "/**"
@@ -36,4 +42,4 @@
# Prisma engine binary needed at runtime
[functions]
included_files = ["node_modules/.prisma/**", "node_modules/@prisma/**"]
node_bundler = "esbuild"
node_bundler = "esbuild"