projeto-hit/backend/src/helpers/SendRefreshToken.ts

6 lines
162 B
TypeScript

import { Response } from "express";
export const SendRefreshToken = (res: Response, token: string): void => {
res.cookie("jrt", token, { httpOnly: true });
};