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
+10
View File
@@ -12,6 +12,16 @@ const nextConfig: NextConfig = {
turbopack: {
root: path.resolve(import.meta.dirname || __dirname),
},
async redirects() {
return [
{
source: "/auth/callback",
destination: "/mobile/auth/callback",
permanent: false,
basePath: false,
},
];
},
};
export default nextConfig;