13 lines
431 B
TypeScript
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);
|
|
}
|