feat: add avatar (#47)

This commit is contained in:
Roberto Vidal
2024-08-22 10:11:38 +02:00
committed by GitHub
parent a7b1f5046d
commit b4cfe6ab8b
12 changed files with 104 additions and 85 deletions

View File

@@ -16,9 +16,9 @@ import { auth, type AuthAPI } from '~/lib/webcontainer/auth.client';
import { logger } from '~/utils/logger';
export async function loader({ request, context }: LoaderFunctionArgs) {
const { authenticated, response } = await isAuthenticated(request, context.cloudflare.env);
const { session, response } = await isAuthenticated(request, context.cloudflare.env);
if (authenticated) {
if (session != null) {
return redirect('/', response);
}