refactor(server): auth enums (#13552)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { CookieOptions, Response } from 'express';
|
||||
import { Duration } from 'luxon';
|
||||
import { CookieResponse, ImmichCookie } from 'src/dtos/auth.dto';
|
||||
import { CookieResponse } from 'src/dtos/auth.dto';
|
||||
import { ImmichCookie } from 'src/enum';
|
||||
|
||||
export const respondWithCookie = <T>(res: Response, body: T, { isSecure, values }: CookieResponse) => {
|
||||
const defaults: CookieOptions = {
|
||||
|
||||
Reference in New Issue
Block a user