From c52c03699a627c5e2ab104a06bb229aea42b3308 Mon Sep 17 00:00:00 2001 From: Zach Millman Date: Mon, 6 May 2024 21:45:49 -0700 Subject: [PATCH] Naming polish --- app/services/auth.server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/auth.server.ts b/app/services/auth.server.ts index e0ead09..8234e5d 100644 --- a/app/services/auth.server.ts +++ b/app/services/auth.server.ts @@ -5,14 +5,14 @@ import { redirect } from "@remix-run/server-runtime"; import { prisma } from "../utils/db.server"; import { findOrCreateGoogleUser } from "../models/google-user.server"; -// TODO: This should only be storing a session token that identifies the user - nothing else -interface User { +// We only store the user's id in the session - nothing else +interface SessionUser { id: string; } // Create an instance of the authenticator, pass a generic with what // strategies will return and will store in the session -export const authenticator = new Authenticator(sessionStorage, { +export const authenticator = new Authenticator(sessionStorage, { sessionErrorKey: "auth-error", throwOnError: true, });