n8cn / packages /cli /src /auth /jwt.ts
gallyga's picture
Add n8n Chinese version
aec3094
import type { User } from '@n8n/db';
import { Container } from '@n8n/di';
import type { Response } from 'express';
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);
}