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