fix: return proper token response from casdoor-callback API route + remove hardcoded secret
This commit is contained in:
+7
-1
@@ -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"
|
||||
Reference in New Issue
Block a user