Error: Objects are not valid as a React child (found: object with keys {code, message, otp, data, requestId}). If you meant to render a collection of children, use an array instead. code example
Example: objects are not valid as a react child
// You can't make App an async function... promises must be resolved other ways
// BAD
const App = async () => {
const auth = await somePromise();
return (
<></>
);
}