Reactjs – Getting an error in console even though I have used try/catch and async/await
/* the code that is doing the API call, account.get() is an endpoint provided by Appwrite to get current user session data */ export async function getCurrentUser() { try { const user = await account.get(); //api call through appwrite endpoint…