diff options
| author | Adam Soltys <[email protected]> | 2024-11-26 13:08:08 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-26 13:20:53 -0800 |
| commit | 0bf630c39fe290ea2718eab7a0759d978c736ef9 (patch) | |
| tree | a670c3ae954d5075c851126c2aca7a1a45d1b41d /src/lib/utils.ts | |
| parent | 41ee0027e1767e4d116330bdee2e0456fd45f940 (diff) | |
| download | coinos-ui-0bf630c39fe290ea2718eab7a0759d978c736ef9.tar.gz coinos-ui-0bf630c39fe290ea2718eab7a0759d978c736ef9.zip | |
bip21 and socket fixes
Diffstat (limited to 'src/lib/utils.ts')
| -rw-r--r-- | src/lib/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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")}`, }); |
