fix: add /auth/callback redirect for Casdoor OIDC flow

This commit is contained in:
2026-06-29 01:57:20 +02:00
parent bda12e0546
commit 4951f7f9e2
3 changed files with 13 additions and 2 deletions
+7
View File
@@ -14,6 +14,13 @@
to = "/mobile"
status = 301
# OAuth callback: Casdoor redirects here without /mobile prefix
# Rewrite (200) so the auth callback route at /mobile/auth/callback handles it
[[redirects]]
from = "/auth/callback"
to = "/mobile/auth/callback"
status = 200
# Everything else handled by Next.js plugin
[[redirects]]
from = "/**"