import { Utils , Auth } from "@slicemachine/core" ; export async function loginOrBypass ( base ) { const user = await Auth . validateSession ( base ) ; if ( user ) return Utils . writeCheck ( `Logged in as ${ Utils . bold ( user . email ) }` ) ; else await Auth . login ( base ) ; }