mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-11-19 05:08:56 -06:00
10 lines
339 B
TypeScript
10 lines
339 B
TypeScript
import { Authenticator } from "remix-auth";
|
|
import { type DiscordProfile, DiscordStrategy } from "./DiscordStrategy.server";
|
|
|
|
export const SESSION_KEY = "user";
|
|
export const IMPERSONATED_SESSION_KEY = "impersonated_user";
|
|
|
|
export const authenticator = new Authenticator<DiscordProfile>();
|
|
|
|
authenticator.use(DiscordStrategy(), "discord");
|