Skip to content

IA-943:Fix: Token extraction bug causing login failure

khadija.elbachouri a demandé de fusionner feature/IA-943 vers develop

Problem

Login was failing with "Token non trouvé dans la réponse" despite the API returning a valid token.

Root Cause

In auth/context/action.ts, accessToken was aliased as token during destructuring but the rest of the function still referenced accessToken (undefined). Additionally, refreshToken was never destructured from the response.

Changes

  • Fixed destructuring of accessToken (removed incorrect token alias)
  • Added refreshToken to the destructured response fields

Rapports de requête de fusion