register user fix + login fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user