Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Naming polish
Browse files Browse the repository at this point in the history
  • Loading branch information
zmillman committed May 7, 2024
1 parent eff4e5f commit c52c036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/auth.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<User>(sessionStorage, {
export const authenticator = new Authenticator<SessionUser>(sessionStorage, {
sessionErrorKey: "auth-error",
throwOnError: true,
});
Expand Down

0 comments on commit c52c036

Please sign in to comment.