Files
Automata/packages/cli/src/auth/jwt.ts
कारतोफ्फेलस्क्रिप्ट™ 56c8791aff refactor(core): Remove all legacy auth middleware code (no-changelog) (#8755)
2024-02-28 13:12:28 +01:00

13 lines
431 B
TypeScript

import { Container } from 'typedi';
import type { Response } from 'express';
import type { User } from '@db/entities/User';
import { AuthService } from './auth.service';
// This method is still used by cloud hooks.
// DO NOT DELETE until the hooks have been updated
/** @deprecated Use `AuthService` instead */
export function issueCookie(res: Response, user: User) {
return Container.get(AuthService).issueCookie(res, user);
}