Core-API
Publichistory Last commit 15m agostar 124 starscall_split 3 branches
call_split
expand_more
Project Timeline
Current Sprint
v1.0.2
Current Sprint
PR #42
Sprint End
merge_type
2h agoUpdate User Authentication Logic
Refactored the JWT handling middleware to support the new refresh token rotation policy. Also fixed a race condition in session storage.
Sarah J.
reviews Review Requiredcommit
3m agoFixing memory leak in worker.ts
Alex M.
#8a2b3cRecent Files
descriptionsrc/auth/provider.ts
+124 / -23foldersrc/components
Updated 4h agodescriptionsrc/auth/user.ts
12
import { Logger } from '../utils/logger';
13
14
- const user = null;
14
+ const user = await auth.getUser(token);
15
+ if (!user) throw new Error('Unauthorized');
16
17
Logger.info(`User access: ${user.id}`);
18
return user;
TechLead_MikeJust now
Can we optimize this query? Using `await` here might block the event loop if the auth service is slow. Consider pre-fetching.
Review StatusChanges Requested