mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 04:02:40 -05:00
10 lines
335 B
TypeScript
10 lines
335 B
TypeScript
import { Authenticator } from "remix-auth";
|
|
import { DiscordStrategy, type LoggedInUser } from "./DiscordStrategy.server";
|
|
|
|
export const SESSION_KEY = "user";
|
|
export const IMPERSONATED_SESSION_KEY = "impersonated_user";
|
|
|
|
export const authenticator = new Authenticator<LoggedInUser>();
|
|
|
|
authenticator.use(DiscordStrategy(), "discord");
|