Written auth functions, app->core