refactor(server): auth enums (#13552)

This commit is contained in:
Jason Rasmussen 2024-10-17 13:17:32 -04:00 committed by GitHub
parent d9949434f6
commit e3fc4d7b0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 37 additions and 41 deletions

View file

@ -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 = {