Rix brings application-level packages to Vix.cpp: utilities, authentication, documents, data tools, developer helpers, and more. Vix stays focused on the runtime, CLI, build workflow, registry, and core foundations.
#include <rix.hpp>
int main(){
auto auth = rix.auth.memory();
auto user = auth.register_user({"[email protected]","password"});
if (user.failed()){
rix.debug.eprint("auth failed");
return 1;
}
auto login = auth.login({"[email protected]", "password"});
if (login.ok()){
rix.debug.print("signed in:", login.value().user.email());
}
return 0;
}