mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): auth enums (#13552)
This commit is contained in:
parent
d9949434f6
commit
e3fc4d7b0a
12 changed files with 37 additions and 41 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue