251208:0010 Backend & Frontend Debug
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
2025-12-08 00:10:37 +07:00
parent 32d820ea6b
commit dcd126d704
99 changed files with 2775 additions and 1480 deletions

View File

@@ -122,6 +122,7 @@ export const {
return {
...token,
id: user.id,
username: user.username, // ✅ Save username
role: user.role,
organizationId: user.organizationId,
accessToken: user.accessToken,
@@ -141,6 +142,7 @@ export const {
async session({ session, token }) {
if (token && session.user) {
session.user.id = token.id as string;
session.user.username = token.username as string; // ✅ Restore username
session.user.role = token.role as string;
session.user.organizationId = token.organizationId as number;