logic/auth.js
// Returns true if the user is registered otherwise false.
Returns true if the user is registered otherwise false.
Returns true if the user is registered otherwise false .
async function isRegistered() {
    try {
        await diskLogic.readUserFile();
        return { registered: true };
    } catch (error) {
        return { registered: false };
    }
}
async function isRegistered ( ) { try { await diskLogic . readUserFile ( ) ; return { registered : true } ; } catch ( error ) { return { registered : false } ; } }
Returns true if the user is registered otherwise false.
Returns true if the user is registered otherwise false .