feat: citizenship built
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ export async function getSessionUserId(): Promise<string | null> {
|
||||
try {
|
||||
const { payload } = await jwtVerify(token, getSecret());
|
||||
return payload.sub ?? null;
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.error("Session verification failed:", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user