fix(frontend): save token to legacy 'token' key for backward compatibility

This commit is contained in:
Tiago Yamamoto 2025-12-24 17:22:46 -03:00
parent 3fc701a98c
commit 37512a7d1c

View file

@ -64,6 +64,7 @@ export async function login(
if (typeof window !== "undefined") {
localStorage.setItem(AUTH_KEY, JSON.stringify(user));
localStorage.setItem("auth_token", data.token);
localStorage.setItem("token", data.token); // Legacy support
}
return user;