register user fix + login fix

This commit is contained in:
2026-01-10 13:44:49 +01:00
parent eef0c35134
commit cd459a1aa0
2 changed files with 21 additions and 32 deletions

View File

@@ -32,7 +32,7 @@ export default function Login({ onLogin }) {
//const data = await res.json(); // server returns short-lived token
//localStorage.setItem("access_token", data.access_token);
if (onLogin) onLogin(); // notify App to show MainApp
if (onLogin) await onLogin(); // notify App to show MainApp
} catch (err) {
console.error(err);