Return server error.

This commit is contained in:
Mike Cao 2025-02-10 21:14:58 -08:00
parent 4d6ec631f7
commit 6466cef269
2 changed files with 146 additions and 142 deletions

View file

@ -31,7 +31,7 @@ export async function POST(request: Request) {
const { id, role, createdAt } = user;
let token = null;
let token: string;
if (redis.enabled) {
token = await saveAuth({ userId: id, role });