we use getCurrentUser() instead of assertAuthenticated() in the dashboard page
for the auth pages I tried to redirect with middleware but Libsql threw an error ( I think its edge related thing )
LibsqlError: URL_SCHEME_NOT_SUPPORTED: The client that uses Web standard APIs supports only "libsql:", "wss:", "ws:", "https:" and "http:" URLs, got "file:". For more information, please read https://github.com/libsql/libsql-client-ts#supported-urls
doing auth pages redirect in a layout is not the best approach since the layout does not refetch
we redirect users based on their auth status