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
+13
View File
@@ -0,0 +1,13 @@
// Health check — test if functions work at all
exports.handler = async () => {
return {
statusCode: 200,
body: JSON.stringify({
ok: true,
node: process.version,
hasFetch: typeof fetch === 'function',
cwd: process.cwd(),
envKeys: Object.keys(process.env).filter(k => !k.includes('SECRET') && !k.includes('PASSWORD')).sort(),
}),
};
};