Make check-verification always return 200 JSON with reason; improve robustness
cgen-d17ebbae78ff48a0b84d4707972b2c06
This commit is contained in:
parent
7e764b2bf6
commit
d35f372133
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ export function createServer() {
|
|||
}
|
||||
|
||||
if (!user) {
|
||||
return res.status(404).json({ error: "User not found" });
|
||||
return res.json({ verified: false, user: null, reason: "not_found" });
|
||||
}
|
||||
|
||||
const verified = Boolean(user?.email_confirmed_at || user?.confirmed_at);
|
||||
|
|
|
|||
Loading…
Reference in a new issue