feat: initial prototype works

I can log in and create a book! Woo!
This commit is contained in:
2026-02-04 12:17:05 -08:00
parent e167a17bd9
commit b6d66d34cb
44 changed files with 3695 additions and 493 deletions
@@ -0,0 +1,17 @@
/**
* @copyright 2026 NHCarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { AuthService } from '../services/auth.service';
import { catchError, of } from 'rxjs';
export function initializeAuth(authService: AuthService) {
return () => authService.getCurrentUser().pipe(
catchError(() => {
// If not authenticated, that's okay - just continue
return of(null);
})
);
}