feat: Sprint 1 core tracker + SuperOAuth PKCE E2E
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 31s

Backend: cookie-parser, auth guard token introspection (SuperOAuth profile API),
fix réponse wrappée { success, data: { user, linkedProviders } }.
Frontend: page login 4 providers PKCE, callback SSR-safe (browser guard),
search améliorée (debounce, pagination, toast, feedback visuel ajout),
list complète (7 tabs, progression inline, score, vue grille/liste, cards goldées),
profil (XP bar, grades, 8 stats), user store partagé, toast system.
This commit is contained in:
2026-03-25 02:43:36 +01:00
parent f1cff74d83
commit 108f021bd8
16 changed files with 918 additions and 333 deletions

View File

@@ -42,7 +42,17 @@ export class AuthGuard implements CanActivate {
headers: { Authorization: `Bearer ${token}` },
});
if (!res.ok) return null;
return res.json();
const body = await res.json();
if (!body?.success || !body?.data?.user) return null;
const user = body.data.user;
const avatar = body.data.linkedProviders?.[0]?.avatar || null;
return {
id: user.id,
nickname: user.nickname || user.email,
avatar,
};
} catch {
return null;
}