started integrating auth with lucia

This commit is contained in:
Milo Schwartz 2024-10-01 20:48:03 -04:00
parent a33a8d7367
commit fc5dca136f
No known key found for this signature in database
20 changed files with 1341 additions and 61 deletions

19
server/utils/response.ts Normal file
View file

@ -0,0 +1,19 @@
import { ResponseT } from "@server/types/Response";
export const response = <T>({
data,
success,
error,
message,
status,
}: ResponseT<T>) => {
return {
data,
success,
error,
message,
status,
};
};
export default response;