boredgame/src/lib/server/api/providers/lucia.provider.ts
2024-07-30 18:50:46 -07:00

11 lines
293 B
TypeScript

import { container } from 'tsyringe';
import { lucia } from '../infrastructure/auth/lucia';
// Symbol
export const LuciaProvider = Symbol('LUCIA_PROVIDER');
// Type
export type LuciaProvider = typeof lucia;
// Register
container.register<LuciaProvider>(LuciaProvider, { useValue: lucia });