From 0bf630c39fe290ea2718eab7a0759d978c736ef9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 26 Nov 2024 13:08:08 -0800 Subject: bip21 and socket fixes --- src/lib/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/utils.ts') diff --git a/src/lib/utils.ts b/src/lib/utils.ts index a15bb8e7..dc7182e3 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -151,7 +151,7 @@ export const info = (m: string) => { export const login = async ( user: { username: string; password: string }, - cookies: any, + cookies, ip: string, ) => { const maxAge = 380 * 24 * 60 * 60; @@ -182,7 +182,7 @@ export const login = async ( cookies.set("token", token, opts); }; -export const auth = (cookies: any) => ({ +export const auth = (cookies) => ({ authorization: `Bearer ${cookies.get("token")}`, }); -- cgit v1.2.3